projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ed1d56
)
Roo/form/GridField.js
author
Alan Knowles
<alan@roojs.com>
Wed, 14 Sep 2011 05:07:15 +0000
(13:07 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 14 Sep 2011 05:07:15 +0000
(13:07 +0800)
Roo/form/GridField.js
patch
|
blob
|
history
diff --git
a/Roo/form/GridField.js
b/Roo/form/GridField.js
index
73221ad
..
edce692
100644
(file)
--- a/
Roo/form/GridField.js
+++ b/
Roo/form/GridField.js
@@
-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....