initiate a table with local data, multiselect:true.
Make sure you have more than 5 rows.
Select 2 rows
Select all by clicking the header checkbox, the selarrow array now contains e.g. [1,2,1,2,3,4,5] when it only should contain [1,2,3,4,5]
When select all is activated it pushes all row ids into the selarrow array.
The selection now contains all rows AND the initial 2 selected rows.
The problem is that when I use local data and the user used the select all checkbox to select all.
If I then iterate over selarrow array 2 rows will be iterated twice.
Lets say I have a special case delete function, you will get an error message for something that is already deleted.
The bugfix is simple, clear the selarrow before adding/pushing all rows to the array.
regards
/Jesper
Copyright 2014 TriRand LtdAll Rights ReservedRSS
Back to Top