Configure the grid to allow users to select rows by clicking them, focusing a row and pressing <kbd>␣ Space<kbd> or via
API.
Row selection is configured with the rowSelection
grid Option. Setting rowSelection.mode
to either 'multiRow'
or
'singleRow'
will allow you to select rows by clicking, focusing a row and pressing <kbd>␣ Space<kbd> or via the
selection API.
dashGridOptions = {
'rowSelection': {
'mode': 'singleRow',
},
# other grid options...
}
See detailed documentation on the two row selection modes:
The following example illustrates a basic row selection configuration. Use the select control to choose the default
single row or multi-row configuration.
Row selection can be used when using row grouping, tree data and the server-side row model. See the respective sections
of the documentation:
See AG Grid docs API Reference for the full list of
configuration options available for the row selection.
<br>