I'm developing a grid that uses paging and checkboxes. The grid keeps the state of the selected boxes when jumping between pages. But I've noticed that doing:
$('#grid1').igGrid('selectedRows');
only returns the selected rows in the current page.
How can I get all the selected rows in all the pages? Is there a way to get the primaryKey values instead of the row number of the selected rows. The row order does not help much if the user changes the sorting of the table clicking a column.
Hi,
selection is not persisted across pages. In case you would like to get the primary keys, you can use something like this:
var pkValue = someSelectedrow.element.attr('data-id');
Hope it helps.
Thanks,
Angel
Angel,
I know that Selection feature is not persisted between pages, but the checkboxes of the RowSelector feature DO get persisted. I tested it myself, I just need to know where are they persisted and how to access them.
Thanks