Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
375
Selected rows from RowSelector with paging
posted

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.

Parents
  • 24671
    Suggested Answer
    posted

    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 

Reply Children