I'm using this method igGridSelection('selectedRows') to get the selected rows, but it does not return all the selected rows when using the grid's paging feature. It looks like it only returns the selectedRows for the current page. I'm using the EnableCheckBoxes feature to display a checkbox on the row, and I would like to get all the rows with the checkbox checked on all the pages.
Thanks
hi,
How to persist row selection with sorting?
I tried to use similar technique as explained in this thread but rows selected across features are different as the index changes after sorting.
How to solve this problem?
Thanks,
Rajesh
Hello Rajesh,
The functionality which you want will be available officially as part of the product in the IgniteUI 14.1 volume release. For IgniteUI 13.2 and earlier you can use a custom solution demonstrated in the sample attached to this forum post.
Note: The technique demonstrated in the sample for persisting selection works for Paging, Sorting and Filtering features.
Best regards,Martin PavlovInfragistics, Inc.
Hello Martin,
Thank you for very much for the response. I looked at the solution, it will work for me.
I appreciate your help.
Regards,
hello Martin,
It worked for me. Thank you very much.
I have an issue in using rendered and destroy events. how to define them with HTML.Infragistics helpers ?
As of now I added below code just after my grid definition block which is defined using HTML.Infragistics helpers.
var sp; $(function () { $("#Grid").igGrid({ rendered: function (evt, ui) { sp = SelectionPersistence(ui.owner); sp.enable(); }, destroy: function (evt, ui) { sp.disable(); } }); });
Thank you,
Hello,
Can you please let me know how to find out total number of selectedRows in a grid while paging is enabled?
As of now,
$("#myGrid").igGridSelection("selectedRows");
returns only selected rows on current page.