Class idx.grid._DataGridMixin

Mix-in class to add dojox.grid.DataGrid functions to deal with selection, including:


Defined in: <idx\grid\_DataGridMixin.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
Obtains a cell for the specified field.
 
Retrieves the selected data store item.
 
Moves down the selected rows.
 
moveItem(from, to)
Simply moves a row to the specified position.
 
Moves up the selected rows.
 
selectByAttribute(name, value)
Selects a row matching the specified attribute value.

Constructor Detail

idx.grid._DataGridMixin()

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