• selectionMode
◦ none
◦ single
◦ multiple
◦ extended
• columnReordering
• headerMenu
• autoHeight
◦ Not supplied – the height of the <div>
◦ true – resize to the number of rows
◦ <num> - maximum number of rows to show
• autoWidth
• singleClickEdit
• loadingMessage
• errorMessage
• selectable
• formatterScope
• updateDelay
• initialWidth
• escapeHTMLInData
Notice that the columns are defined in the structure field. Each column has the following
properties:
• name – The column name shown in the table
• field – The field (or property) in the data to be used to show the entry
• width – The width of the column in the table
• cellType – The type of cell in the column, for example:
◦ dojox.grid.cells.Bool
◦ dojox.grid.cells.Select
• get – A function to be called that will retrieve the value for this cell
• options – Used to provide allowable values for a Select/Combobox field.
• editable – A boolean value that defines whether or not the field is editable.
• formatter – A function used to return the content (HTML or widget) used to show the
cell. See: Formatting.
Page 175
Kommentare zu diesen Handbüchern