projects
/
roojs1
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b60e3e6
)
Roo/grid/EditorGrid.js
author
Alan Knowles
<alan@akbkhome.com>
Fri, 5 Nov 2010 05:38:44 +0000
(13:38 +0800)
committer
Alan Knowles
<alan@akbkhome.com>
Fri, 5 Nov 2010 05:38:44 +0000
(13:38 +0800)
Roo/grid/EditorGrid.js
patch
|
blob
|
history
diff --git
a/Roo/grid/EditorGrid.js
b/Roo/grid/EditorGrid.js
index
1e21df8
..
b7cf1aa
100644
(file)
--- a/
Roo/grid/EditorGrid.js
+++ b/
Roo/grid/EditorGrid.js
@@
-121,6
+121,11
@@
Roo.extend(Roo.grid.EditorGrid, Roo.grid.Grid, {
if(this.fireEvent("validateedit", e) !== false && !e.cancel){
r.set(field, e.value);
+ // if we are dealing with a combo box..
+ // then we also set the 'name' colum to be the displayField
+ if (ed.field.displayField && ed.field.name) {
+ r.set(ed.field.name, ed.field.el.dom.value);
+ }
delete e.cancel; //?? why!!!
this.fireEvent("afteredit", e);