FlexGrid with grid.selector: Keep rows selected after paging

Posted by: qinhong.wang on 21 January 2021, 7:11 pm EST

  • Posted 21 January 2021, 7:11 pm EST

    Hello,

    I am using FlexGrid and Selector (wijmo.grid.selector).

    I met a problem in grid client-side paging.

    For instance, I have 10 records in the first page and 3 records are selected.

    When I move to the second page and then go back to the first page, the 3 records in the first page are not selected any more.

    Are there any methods to keep rows selected after paging?

    Thanks in advance!

  • Posted 26 January 2021, 10:21 pm EST

    Hi Wang,

    I apologize for the delay in response. Unfortunately, there is no method in-built into the grid to save the selectedItems. Instead, you will need to use the Map object to save the selected items. You can use the pageChanging/pageChanged events of CollectionView class to save/restore the items.

    Please refer to the sample link below for reference:

    https://stackblitz.com/edit/js-mggfp1

    Regards,

    Ashwin

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels