Show
Ignore:
Timestamp:
05/14/08 10:04:13 (6 months ago)
Author:
BryanForbes
Message:

refs #6545, #6546, and #6353 !strict

  • Added ability to edit in DataGrid?.
  • Merged cells and editors into dojox.grid.cells.*.
  • Updated _EditManager and _Layout to reflect change in cells.
  • Added more parse options to DataGrid?.markupFactory to work with change in cells.
  • Changed dijit editors to dijit cells and placed in grid/cells/dijit.js.
  • Updated tests to reflect changes.
  • Added DataGrid? tests to show editing with regular and dijit editors.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • dojox/trunk/grid/tests/test_edit_dijit.html

    r13680 r13731  
    7474                        field: 2, name: 'Status',  
    7575                        styles: 'text-align: center;',  
    76                         editor: dojox.grid._data.editors.Select,  
     76                        type: dojox.grid.cells.Select,  
    7777                        options: [ "new", "read", "replied" ] 
    7878                }; 
     
    8181                        type: 'dojox.grid._RowSelector', width: '20px' 
    8282                },{ 
    83                         defaultCell: { width: 8, editor: dojox.grid._data.editors.Input, styles: 'text-align: right;'  }, 
     83                        defaultCell: { width: 8, editable: true, type: dojox.grid.cells._Widget, styles: 'text-align: right;'  }, 
    8484                        rows: [[ 
    8585                                { name: 'Id',  
    8686                                        get: function(inRowIndex) { return inRowIndex+1;},  
    87                                         editor: dojox.grid._data.editors.Dijit, 
    88                                         editorClass: "dijit.form.NumberSpinner" }, 
     87                                        widgetClass: "dijit.form.NumberSpinner" }, 
    8988                                { name: 'Date', width: 10, field: 7,  
    90                                         editor: dojox.grid._data.editors.DateTextBox,  
     89                                        type: dojox.grid.cells.DateTextBox,  
    9190                                        formatter: formatDate,  
    9291                                        constraint: {formatLength: 'long', selector: "date"}}, 
    9392                                { name: 'Priority', styles: 'text-align: center;', field: 0,  
    94                                         editor: dojox.grid._data.editors.ComboBox,  
     93                                        type: dojox.grid.cells.ComboBox,  
    9594                                        options: ["normal", "note", "important"], width: 10}, 
    9695                                { name: 'Mark', width: 3, styles: 'text-align: center;',  
    97                                         editor: dojox.grid._data.editors.CheckBox}, 
     96                                        type: dojox.grid.cells.CheckBox}, 
    9897                                statusCell, 
    9998                                { name: 'Message', styles: '', width: '100%',  
    100                                         editor: dojox.grid._data.editors.Editor, editorToolbar: true }, 
     99                                        type: dojox.grid.cells.Editor, editorToolbar: true }, 
    101100                                { name: 'Amount', formatter: formatCurrency, constraint: {currency: 'EUR'},  
    102                                         editor: dojox.grid._data.editors.Dijit, editorClass: "dijit.form.CurrencyTextBox" }, 
     101                                        widgetClass: "dijit.form.CurrencyTextBox" }, 
    103102                                { name: 'Amount', field: 4, formatter: formatCurrency, constraint: {currency: 'EUR'},  
    104                                         editor: dojox.grid._data.editors.Dijit, editorClass: "dijit.form.HorizontalSlider", width: 10} 
     103                                        widgetClass: "dijit.form.HorizontalSlider", width: 10} 
    105104                        ]] 
    106105                }];