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
15
Is there a grid api which returns the data which is currently visible in igx-grid
posted

e.g - paging is set to true and perPage is set to 20 so the api will return 20 records which are visible on page 1 and next 20 records when I switch to page 2 and so on, same goes with filtering when I search something in the filters it will return me the 20 records which are filtered and visible on the grid.

The reason for this is when I set the rowSelection to multiple and then if i select the select all check box it selects the whole data in all the following which doesn't satisfy my use case. Is there an alternative option in which [selectOnlyVisibleData]="true" and it will just select all the items which is visible in page [N] only. Or is this only achievable by remotePagination?

Parents
No Data
Reply
  • 1080
    Verified Answer
    Offline posted

    Hello,

    Thank you for posting in our community.

    After further investigation, I determined that this behavior is currently not provided out of the box.

    However, this can be done on the application level by templating a header checkbox and using igxGrid's API for manually controlling the Select All behavior of your grid. I have created a small sample in StackBlitz for your reference. You can use it as a starting point for implementing the desired behavior.

    My suggestion is to take a look at the following resources:

    If the workaround does not meet your requirements, you can log a new feature request in our GitHub repository. This will give you the opportunity to communicate directly with our product managers and development team.

    Please let me know if you need any further assistance with this matter.

Children