Class idx.grid._DataGridMixin
Mix-in class to add dojox.grid.DataGrid functions to deal with selection, including:
- Retrieving the selected item.
- Selecting a row by the specified attribute.
- Moving up and down the selected rows.
Defined in: <idx\grid\_DataGridMixin.js>.
Constructor Summary
Constructor Attributes | Constructor Name and Description |
---|---|
Method Summary
Method Attributes | Method Name and Description |
---|---|
getCellByField(field)
Obtains a cell for the specified field.
|
|
Retrieves the selected data store item.
|
|
moveDownSelectedRows(bottom)
Moves down the selected rows.
|
|
moveItem(from, to)
Simply moves a row to the specified position.
|
|
moveUpSelectedRows(top)
Moves up the selected rows.
|
|
selectByAttribute(name, value)
Selects a row matching the specified attribute value.
|
Method Detail
{Object} getCellByField(field)
Obtains a cell for the specified field.
- Parameters:
- {String} field
- Returns:
- {Object}
{Object} getSelectedItem()
Retrieves the selected data store item.
- Returns:
- {Object}
moveDownSelectedRows(bottom)
Moves down the selected rows.
If "bottom" is set to true, moves them to the bottom.
- Parameters:
- {Boolean} bottom
moveItem(from, to)
Simply moves a row to the specified position.
Caller is responsible to call updateRows to reflect the move.
- Parameters:
- {Numner} from
- {Number} to
moveUpSelectedRows(top)
Moves up the selected rows.
If "top" is set to true, moves them to the top.
- Parameters:
- {Boolean} top
selectByAttribute(name, value)
Selects a row matching the specified attribute value.
- Parameters:
- {String} name
- {Object} value