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
Hello Olivier,
This issue has been resolved with the later versions. If you change your loader's scriptPath and cssPath to point to the latest service release like this:
$.ig.loader({ scriptPath: "http://cdn-na.infragistics.com/jquery/20121/latest/js/", cssPath: "http://cdn-na.infragistics.com/jquery/20121/latest/css/", resources: "igGrid.Filtering,igCombo,igGrid.*" });
Clear Selection will then work as expected.
Thank you for using the Infragistics forums!
Best regards,
Stamen Stoychev
Ok it works! But with paging, "clear" only works on the current page. Is it possible to clear the entire selection (not displayed pages) ?
I have to provide a checkbox for each row. When the user rebind the grid (by clicking on a button) the selection must cleared.
What is the most appropriate? I tried to use the events PageIndexChanging and PageIndexChanged. Is this the right way?
Regards,
Hi Olivier,
If you have any other questions, please feel free to contact us.
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,
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
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