jquery - jqGrid + multiselect: duplicate selection if I pre-select rows on loading -


I'm still struggling to understand that jqGrid multiselect Strong> When I thought I knew everything about it, then another problem.

You can find an example of what is happening.

I want to select some rows in a multilevel grid.
If you click the button, it will tell you that you have 13 rows selected. very good.
Now, if you check all the rows using the " Select All " button, then you will know that the selected rows are 40. The problem is that there are only 29 rows in the grid: - S
It looks like he maintains the previous selection and adds new rows.
Any help will really be really appreciated.

Your code displays a bug in jqGrid 3.8.2. To clear the selarrrow , JqGrid must reset [] :

  ts.p.selarrrow = [];   

Prior to filling ID of all selected rows, I verified that the bug has already been fixed in jqGrid code on github.com: see. So if you use the developer version of jqGrid you can only add to the code of jqGrid code 3.8.2. Alternatively you can wait for the next release of jqGrid or from the previous (can not be very good testing code). : -)

Comments