Hello,
I have a grid with the following features:
- Paging- Selection- RowSelectors
On the first page I select all rows then I click on my "Clear Selection" button ($('#grid1').igGridSelection('clearSelection');).Selection appears empty but when I go to page 2 then come back on page 1, all rows are selected.
Please find an example in attachement.
Thanks for your help,
Olivier
Thank you for your help, I could solve all the issue with row selection:
- Define an initial selection (with paging)- Keep selection after sorting or filtering- Clear selection rebind
Regards,
Hello aldup,
I'm just following up to see if you have any other questions or concerns or if you need further assistance.
If so please let me know.
Best Regards,
Maya Kirova
Developer Support Engineer
Infragistics, Inc.
http://ko.infragistics.com/support
Hello aldup ,
The selection is cleared by design when you change the page size and that behavior can’t be changed but you should be able to reapply the selection you’ve saved during the pageSizeChanged event.
Let me know if you happen to come across any issues or if you have any questions.
Thanks ! Finally I maintain an array of my selection with the event "checkBoxStateChanged".
However when the user changes the page size the current selection is lost. If I want to keep the selection my only option is to use the event "pageSizeChanged" ?
Olivier,
Hi Olivier,
If you have any other questions, please feel free to contact us.