Gets or sets a value that determines whether to show a 'Check All' items checkbox on the column header.
The default value for this property is true.
Raises the columnChanged event.
Raises the columnChanging event.
CancelEventArgs that contains the event data.
True if the event was not canceled.
Raises the itemChecked event.
Occurs after the value of the column property changes.
Occurs before the value of the column property changes.
Occurs when the user checks an item on this column.
Class that modifies a FlexGrid Column by adding checkboxes that can be used to select or de-select rows and groups.
The FlexGrid has a FlexGrid.selectionMode property that allows users to select multiple rows or row ranges using the mouse or the keyboard.
But in some cases you may prefer to provide this functionality by adding a column with checkboxes instead. This will allow users to select rows easily on mobile devices and may provide a more intuitive interface on desktop systems as well.
The Selector class allows you to do this by creating an instance of the Selector class and setting its column property to the column where you want the checkboxes to appear. For example:
This will add checkboxes to cells in the first row header column. The checkboxes are bound to each row's Row.isSelected property, so toggling the checkbox toggles the row's selected state.
By default, the Selector also adds checkboxes to the top header cell and to cells in group rows. These cells can be used to select or de-select all rows on the grid and on each group.
You may use the showCheckAll property to turn off the checkbox at the top header cell.
The Selector can also be added to non header columns. For example:
In this case, the Selector will add the selection checkboxes to regular grid cells preserving their original data content.
** Note **: When you attach a Selector to a FlexGrid, it will automatically set the grid's FlexGrid.selectionMode property to SelectionMode.Cell, since that is the selection mode that makes most sense for the type of selection provided by the Selector. (The SelectionMode.ListBox mode would cause the grid to interfere with the selector's behavior.)