Infinite Scroll Client Side CRUD

Hello, 

I have a dataSource for infinite scrolling, however I would like to programmatically add a new record to the grids data set without making a server call. The new record should appear along with the records returned from the infinite data source. I would also like to programmatically remove a record from the grids datasource without making a server call so that I might handle this operation outside of the grid control.

My dataSource with a custom ApiAdaptor extends WebApiAdaptor:

    this.itemData = new DataManager({
      url: serviceString,
      adaptor: new WebApiAdaptor(),
      headers
    });

Please advise how I might accomplish this. 


1 Reply

AR Aishwarya Rameshbabu Syncfusion Team October 18, 2024 04:05 PM UTC

Hi Kaelen Brown,


Greetings from Syncfusion support.


From the shared information and the code example it has been noticed that you are using remote data binding with the Syncfusion Grid by implementing a custom adaptor.  While using remote data binding in the Grid the CRUD operation can only be performed at the server side. For every Grid action a request is sent to the server which gets processed, and the results are shown in the Grid based on the response retuned from the server. Therefore, we could not add or delete a record programmatically in the Grid without a server call while using remote data.


Regards

Aishwarya R


Loader.
Up arrow icon