Roo/form/GridField.js
authorAlan Knowles <alan@roojs.com>
Wed, 14 Sep 2011 05:07:15 +0000 (13:07 +0800)
committerAlan Knowles <alan@roojs.com>
Wed, 14 Sep 2011 05:07:15 +0000 (13:07 +0800)
Roo/form/GridField.js

index 73221ad..edce692 100644 (file)
@@ -115,6 +115,9 @@ Roo.extend(Roo.form.GridField, Roo.form.Field,  {
             data[ds.reader.meta.root ] =  typeof(v) == 'string' ? Roo.decode(v) : v;
             ds.loadData( data);
         }
+        // clear selection so it does not get stale.
+        this.grid.sm.clearSelections();
+        
         Roo.form.GridField.superclass.setValue.call(this, v);
         this.refreshValue();
         // should load data in the grid really....