I’m using selectionmode as checkbox
and would like to limit the number of records a user can select to 5. Is this possible? I can’t believe that I can’t stop the propagation of the rowselect event to stop the row from being selected. That’s a pretty bad implementation.
$jqxTaggedDev.on('rowselect', function(event) {
var selectedRows = $jqxTaggedDev.jqxGrid('getselectedrowindexes');
if (selectedRows.length > __GLOBAL__.maxSelectedRows) {
// Doesn't work.
var rowIndex = event.args.rowindex;
$jqxTaggedDev.jqxGrid('unselectrow', rowIndex);
$jqxTaggedDev.jqxGrid('refresh');
// Doesn't work either
event.stopPropogation();
return false;
}
});