gridx
Legend: Array Boolean Constructor Date DomNode Error Function Namespace Number Object RegExp Singleton String

gridx.modules.select.Row

Object » _RowCellBase » gridx.modules.select.Row
dojo.require("gridx.modules.select.Row");
Defined in gridx/modules/select/Row.js

This module provides a simple way for selecting rows by clicking or SPACE key, or CTRL + Click to select multiple rows.

Examples:

Example 1

1. Use select api on grid row object obtained from grid.row(i)
	grid.row(1).select();
	grid.row(1).deselect();
	grid.row(1).isSelected();
2. Use select api on select.row module
	grid.select.row.selectById(rowId);
	grid.select.row.deSelectById(rowId);
	grid.select.row.isSelected(rowId);
	grid.select.row.getSelected();//[]
	grid.select.row.clear();

Property Summary

  • rowMixin A map of functions to be mixed into grid row object, so that we can use select api on row object directly - grid.row(1).select() | deselect() | isSelected();

Method Summary

Event Summary

Attached Objects

Properties

rowMixin
Overrides _RowCellBase
A map of functions to be mixed into grid row object, so that we can use select api on row object directly - grid.row(1).select() | deselect() | isSelected();

Methods

_highlight
Overrides _RowCellBase
ParameterTypeDescription
rowId
toHighlight
_init
Overrides _RowCellBase
_markById
Overrides _RowCellBase
ParameterTypeDescription
id
toMark
_onMark
Overrides _RowCellBase
ParameterTypeDescription
id
toMark
oldState
type
_onRender
Overrides _RowCellBase
ParameterTypeDescription
start
count
clear
Overrides _RowCellBase
Deselected all selected rows;
deselectById
Overrides _RowCellBase
Deselect a row by id.
ParameterTypeDescription
rowId
getSelected
Overrides _RowCellBase
Get id array of all selected rows
isSelected
Overrides _RowCellBase
Check if a row is already selected.
ParameterTypeDescription
rowId
selectById
Overrides _RowCellBase
Select a row by id.
ParameterTypeDescription
rowId

Events

onDeselected
Overrides _RowCellBase
Fired when a row is deselected.
ParameterTypeDescription
rowgridx.core.RowThe row object
onHighlightChange
Overrides _RowCellBase
Fired when a row's highlight is changed.
onSelected
Overrides _RowCellBase
Fired when a row is selected.
ParameterTypeDescription
rowgridx.core.RowThe row object