Is there a way to disable multi select?
I know this is an old question, but updates to Slickgrid now allow you to disable multiSelect in the grid options:
var options = {
editable: false,
enableCellNavigation: true,
asyncEditorLoading: false,
multiSelect: false
};
With this option, clicking while holding a ctrl or shift does nothing, and undesirably, you cannot deselect a cell with ctrl + click, or clicking the selected cell again
In don't know of any setting to disable it.
handle the onSelectedRowsChanged
event and do something like:
var selectedRows = grid.getSelectedRows();
if( selectedRows.length > 1 ) {
grid.setSelectedRows( [ selectedRows[ selectedRows.length - 1 ] ] );
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With