[patch][needs cla] dojox.grid.editors.Select doesn't use values
In a grid, when I use a dojox.grid.editors.Select, the value returned for the cell is always the label.
To retrieve the value, the following modification should be done in dojoxgrid\_dataeditors.js:
dojo.declare("dojox.grid.editors.Select", dojox.grid.editors.Input, {
...
getValue: function(inRowIndex){
var n = this.getNode(inRowIndex);
if(n){
var i = n.selectedIndex;
var o = n.options[i];
var v = this.values[i];
return this.cell.returnIndex ? i : v || o.value || o.innerHTML;
}
}
...
Change History (6)
Component: |
General →
DojoX Grid
|
Description: |
modified (diff)
|
Owner: |
changed from anonymous to sorvell
|
Milestone: |
→ 1.2
|
Summary: |
dojox.grid.editors.Select doesn't use values →
[patch][needs cla] dojox.grid.editors.Select doesn't use values
|
Owner: |
changed from sorvell to Bryan Forbes
|
Description: |
modified (diff)
|
Resolution: |
→ wontfix
|
Status: |
new →
closed
|
please state your name and whether you've filed a CLA. Also, it's best to file patch files. Thanks.