Hi,
I want to change my grid to use selectionmode ‘multiplerowsextend’.
Currently, I catch the rowselect event:
.on('rowselect', function (event) {
// event arguments.
var args = event.args;
// row's bound index.
selectedRow = args.rowindex;
I would like to know in this event, if there is only a single row selected, or multiple.
What is the best way to do that?
I tried
var isMultiple = $("#jqxgrid").jqxGrid('getselectedrowindexes').length >1;
However, this trails the event, e.g. this returns true if I first select multiple rows, and then just one.
Thanks