Changeset 12847
- Timestamp:
- 03/03/08 15:54:55 (9 months ago)
- Location:
- dojox/trunk/grid
- Files:
-
- 2 modified
-
tests/test_edit.html (modified) (2 diffs)
-
_data/editors.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
dojox/trunk/grid/tests/test_edit.html
r11375 r12847 67 67 // ========================================================================== 68 68 data = [ 69 [ "normal", false, "new", 'But are not followed by two hexadecimal', 29.91, 10, false ],70 [ "important", false, "new", 'Because a % sign always indicates', 9.33, -5, false ],71 [ "important", false, "read", 'Signs can be selectively', 19.34, 0, true ],72 [ "note", false, "read", 'However the reserved characters', 15.63, 0, true ],73 [ "normal", false, "replied", 'It is therefore necessary', 24.22, 5.50, true ],74 [ "important", false, "replied", 'To problems of corruption by', 9.12, -3, true ],75 [ "note", false, "replied", 'Which would simply be awkward in', 12.15, -4, false ]69 [ 0, false, "new", 'But are not followed by two hexadecimal', 29.91, 10, false ], 70 [ 1, false, "new", 'Because a % sign always indicates', 9.33, -5, false ], 71 [ 1, false, "read", 'Signs can be selectively', 19.34, 0, true ], 72 [ 2, false, "read", 'However the reserved characters', 15.63, 0, true ], 73 [ 0, false, "replied", 'It is therefore necessary', 24.22, 5.50, true ], 74 [ 1, false, "replied", 'To problems of corruption by', 9.12, -3, true ], 75 [ 2, false, "replied", 'Which would simply be awkward in', 12.15, -4, false ] 76 76 ]; 77 77 var rows = 10000; … … 103 103 rows: [[ 104 104 { name: 'Id', width: 3, get: function(inRowIndex) { return inRowIndex+1;} }, 105 { name: 'Priority', styles: 'text-align: center;', editor: dojox.grid.editors.Select, options: ["normal", "note", "important"] },105 { name: 'Priority', styles: 'text-align: center;', editor: dojox.grid.editors.Select, options: ["normal", "note", "important"], values: [0, 1, 2], formatter: function(inDatum) { return this.options[inDatum]}}, 106 106 { name: 'Mark', width: 3, styles: 'text-align: center;', editor: dojox.grid.editors.Bool }, 107 107 statusCell, -
dojox/trunk/grid/_data/editors.js
r11374 r12847 187 187 this.needFormatNode(inDatum, inRowIndex); 188 188 var h = [ '<select class="dojoxGrid-select">' ]; 189 for (var i=0, o, v; ( o=this.options[i])&&(v=this.values[i]); i++){190 h.push("<option", (inDatum== o ? ' selected' : ''), /*' value="' + v + '"',*/">", o, "</option>");189 for (var i=0, o, v; ((o=this.options[i]) !== undefined)&&((v=this.values[i]) !== undefined); i++){ 190 h.push("<option", (inDatum==v ? ' selected' : ''), ' value="' + v + '"', ">", o, "</option>"); 191 191 } 192 192 h.push('</select>');