igniteui-angular icon indicating copy to clipboard operation
igniteui-angular copied to clipboard

Remote pagination reduce bandwidth for API calls

Open prabakaran1311 opened this issue 7 years ago • 6 comments

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 avatar May 10 '19 09:05 prabakaran1311

@prabakaran1311, In order to help you I have a couple of questions regarding your scenario:

  1. What type of tree data do you use - with foreignKey or with childDataKey?

  2. When you get 50 records from the server, is this only root level records, do they include their children?

  3. 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 avatar May 10 '19 12:05 DiyanDimitrov

@DiyanDimitrov , PFB answers:

  1. I am using tree data with childDataKey

  2. I would like to get 50 root level records from server including their children

  3. Show 10 root records per page with all their children.

prabakaran1311 avatar May 21 '19 21:05 prabakaran1311

Hi @DiyanDimitrov ,

Any update on this?

prabakaran1311 avatar May 28 '19 20:05 prabakaran1311

Hi @prabakaran1311,

This could be achieved on an application level. I am attaching a sample. TreeGridRemotePaging.zip

DiyanDimitrov avatar May 29 '19 05:05 DiyanDimitrov

@prabakaran1311, Was the sample helpful? If you are ok with it, we could close the issue.

DiyanDimitrov avatar Jun 03 '19 11:06 DiyanDimitrov

Closing this due to inactivity.

kdinev avatar Jun 18 '19 12:06 kdinev