The following grids demonstrate how selections work in a dojox/grid/DataGrid.
rowSelector
In the following Grid, no special selector view is used, but
rowSelector
is specified in the arguments to the constructor.
The row selector behaves according to the rules of the grid's
selectionMode
.
dojox/grid/_CheckBoxSelector
In the following Grid, the leftmost column is actually a separate view of type
dojox/grid/_CheckBoxSelector
.
Notice how using the checkbox selectors follows its own behavior—in
this case, although the Grid is in extended
selection mode,
which is still in effect when selecting rows via other data cells,
clicking on the checkboxes does not follow that behavior.
(In fact, it's closer to the behavior of the multiple
selection mode.)