Advanced grid (table) control.
Creates a grid as a child of element.optionsObject may contain:
Adds a row. If index is present, it specifies at which index the new row should be inserted.Data is an array of either values or objects. If objects are used, they should contain:
Creates a header row. Data is an array of either values or objects. If objects are used, they should contain:
Adds a new header cell. If index is present, it specifies at which index the new cell should be inserted.Data are in the same format as in OAT.Grid::createHeader().
Converts an existing table into a grid.
Adds one cell to one row. If index is present, it specifies at which index new cell should be inserted. Data are in the same format as in OAT.Grid::createRow(). This method should be called as grid.rows[i].addCell().
Removes one column specified by index from the grid.
Clears the grid (preserves header).
Selects row.
Deselects row.
Sets the minimal width of the column.
Column alignment.
Column sorting order.
Constants specifying the data type in a column. They affect sorting - string or numeric sorts will be used based on these constants. When set to auto, simple detection test (parsing a float of the first row) will be performed.
CSS class of grid table element.
CSS class of even and odd rows.
CSS class of even and odd rows.
CSS class of hovered row.
CSS class of the first column (index) when auto numbering option is active.
CSS class of the header (first row) column.
CSS class of a regular data column.
myGridInstance.rows[index].select(); myGridInstance.rows[index].deselect();