Имя столбца не требуется
однако вам нужна карта между свойством в хранилище данных и именем столбца в
сетка.
Это делается при определении сетки «Макет»
свойство 'field' в 'Layout' - это имя столбца в хранилище данных (точнее, имя свойства), а свойство 'name' в 'Layout' - это имя столбца в сетке.
gridLayout = [{
defaultCell: { width: 8, editable: true, type: dojox.grid.cells._Widget, styles: 'text-align: right;' },
rows: [
{ name: 'Id', field: 'id', editable: false /* Can't edit ID's of dojo.data items */ },
{ name: 'Date', field: 'col8', width: 10,
type: dojox.grid.cells.DateTextBox,
formatter: formatDate,
constraint: {formatLength: 'long', selector: "date"}},
{ name: 'Priority', styles: 'text-align: center;', field: 'col1',
type: dojox.grid.cells.ComboBox,
options: ["normal", "note", "important"], width: 10},
{ name: 'Mark', field: 'col2', width: 3, styles: 'text-align: center;',
type: dojox.grid.cells.CheckBox},
statusCell,
{ name: 'Message', field: 'col4', styles: '', width: 10,
type: dojox.grid.cells.Editor, editorToolbar: true },
{ name: 'Amount', field: 'col5', formatter: formatCurrency, constraint: {currency: 'EUR'},
widgetClass: dijit.form.CurrencyTextBox },
{ name: 'Amount', field: 'col5', formatter: formatCurrency, constraint: {currency: 'EUR'},
widgetClass: dijit.form.HorizontalSlider, width: 10}
]
}];