I want to display the total selected. I update this using the events rowselect and rowunselect. In those events I do a: var selectedRowIndexes = $("#mygrid").jqxGrid('getselectedrowindexes').length;
Above works fine if I select / uncheck checkboxes on each row manually. But if I click on checkbox header to unselect all, it clears things visually but the result of getselectedrowindexes is an array of the total rows with -1 as the values so the .length is always wrong.