Remote pagination reduce bandwidth for API calls
Question
Currently i am using igx-tree-grid in my application. In that i am using remote pagination, sorting, filtering.
for remote pagination currently i am showing 10 records and then paginated datas. what is my question here is. Initially i want to get 50 records from service and want to show only part of data in grid(10 records) and paginate. Here first 50 records want to paginate as local pagination and if it reaches 51th record i want to get data again from server. So that i will reduce my service calls to backend. is it possible in current grid any samples available.
Thanks
- igniteui-angular version: 7.2.4
- browser: all browser
@prabakaran1311, In order to help you I have a couple of questions regarding your scenario:
-
What type of tree data do you use - with
foreignKeyor withchildDataKey? -
When you get 50 records from the server, is this only root level records, do they include their children?
-
When you show 10 records per page in the grid, do you mean 10 root records with all their children, or 10 records no matter if they are root or child records?
@DiyanDimitrov , PFB answers:
-
I am using tree data with childDataKey
-
I would like to get 50 root level records from server including their children
-
Show 10 root records per page with all their children.
Hi @DiyanDimitrov ,
Any update on this?
Hi @prabakaran1311,
This could be achieved on an application level. I am attaching a sample. TreeGridRemotePaging.zip
@prabakaran1311, Was the sample helpful? If you are ok with it, we could close the issue.
Closing this due to inactivity.