Hi Rohit,
Thanks for contacting Syncfusion support.
We have validated your query at our end. You can achieve your requirement by using remote data with InfiniteScrolling feature.
Before proceeding with your query we would like to share the available Data-Adaptors in the Grid. You can choose the adaptors based on your DB. Refer to the below documentation which illustrates available data adaptors in EJ2.
For each Grid data-action like Filtering, Sorting, Paging etc., we send the correspond query to the server based on the data-adaptors. You can execute the queries with your data and return results with required format to the Grid.
If you are using any custom service, we suggest you use custom-binding feature to bind the data to the Grid. Refer to the below documentation for detailed information.
In infiniteScrolling feature, Grid request first 3 pages records from the server at initial render and it works like the lazy loading concept, which means the buffer data is loaded only when the scrollbar reaches the end of the scroller. In InfiniteScrolling feature the grid request next block records only if the vertical scroller reaches the bottom.
For each time request, the actionBegin event will be triggered and here you can send additional parameters to server by using grid.query property. Please find the below code example and sample for more information.
|
[app.component.ts]
actionBegin(args) {
if (args.requestType == 'infiniteScroll') {
this.grid.query.params = [];
// add additional parameter in grid query when adding next block of records
this.grid.query.addParams('ej2grid', 'true');
}
}
|
Please get back to us if you need further assistance with this.
Regards,
Rajapandiyan S