gridx.core.Row
Object » gridx.core.Row
dojo.require("gridx.core.Row");
Defined in gridx/core/Row.js
An instance of this class represents a grid row. This class should not be directly instantiated by users. It should be returned by grid APIs.
Method Summary
- cell(column, isId) returns gridx.core.Cell|null Get a cell object in this row
- cells(start, count) returns gridx.core.Cell[] Get cells in this row.
- constructor(grid, id)
- data() returns Object Get the grid data in this row.
- index() returns Integer Get the index of this row
- item() returns Object Get the store item of this row
- parent() returns gridx.core.Row
- rawData() returns Object Get the store data in this row.
- setRawData(rawData) returns dojo.Deferred Set new raw data of this row into the store
Methods
Returns gridx.core.Cell|null: If the params are valid return the cell object, else return null.
Get a cell object in this row
Parameter | Type | Description |
---|---|---|
column | gridx.core.Column|Integer|String | Column index or column ID or a column object |
isId | Boolean | Optional. If the column parameter is a numeric ID, set this to true |
Returns gridx.core.Cell[]: An array of cells in this row
Get cells in this row.
Parameter | Type | Description |
---|---|---|
start | Integer | Optional. The column index of the first cell in the returned array.
If omitted, defaults to 0, so row.cells() gets all the cells. |
count | Integer | Optional. The number of cells to return.
If omitted, all the cells starting from column 'start' will be returned. |
Returns Object: An associative array using column IDs as keys and grid data as values
Grid data means the result of the formatter functions (if exist). It can be different from store data (a.k.a. raw data).
Returns Object: A store item
If using the old dojo.data store, store items usually have complicated structures, and they are also useful when doing store operations.
Returns Object: An associative array using store fields as keys and store data as values
Store data means the data defined in store. It is the data before applying the formatter functions. It can be different from grid data (a.k.a. formatted data)