There is a grid which selectionmode is set to ‘checkbox’. I am using the following code to get currently selected indexes:
var rows = $("#jqxgrid").jqxGrid('selectedrowindexes');
It works fine when you select/unselect separate rows. Proper row numbers are added to array and removed from it in such case. There is a problem when you click on the column header in order to unselect all items. In this case the array is being filled with ‘-1’ values for each row. So, taking length of array does not give you an amount of selected items anymore. We need to filter out ‘-1’ values for this purpose.
It looks like a bug.