Ticket #5504 (new defect)

Opened 7 months ago

Last modified 5 months ago

[patch][needs cla] dojox.grid.editors.Select doesn't use values

Reported by: guest Owned by: sorvell
Priority: normal Milestone: 1.2
Component: DojoX Grid Version: 0.9
Severity: normal Keywords:
Cc:

Description (last modified by peller) (diff)

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

Changed 7 months ago by peller

  • owner changed from anonymous to sorvell
  • component changed from General to DojoX Grid
  • description modified (diff)

please state your name and whether you've filed a CLA. Also, it's best to file patch files. Thanks.

Changed 5 months ago by dylan

  • summary changed from dojox.grid.editors.Select doesn't use values to [patch][needs cla] dojox.grid.editors.Select doesn't use values
  • milestone set to 1.2
Note: See TracTickets for help on using tickets.