Grid batch edition without batch requests

Hi,
   In grid with editing Normal the editing is working (grid + backend).
But with mode Batch the grid does batch requests and I am not able to make it works on backend side.
I have problems adding batch requests support to backend.

...
const editSettings: any    = { allowEditing: true, allowAdding: true, allowDeleting: true,  mode:'Batch'};
...

Is there any way to do n "normal" requests (POST-PUT) with the grid component ?.
For avoid "batch requests".

Thanks in advance.
Jorge   

3 Replies

AG Ajith Govarthan Syncfusion Team October 29, 2021 02:36 PM UTC

Hi JORGE, 

Thanks for contacting Syncfusion support. 

Based on your query, you are facing issues with batch edit mode requests at the server side in your Grid application. So, before we proceed to your query, please share the below details to validate further on your requirement. 

  1. Share the complete Grid code example.

  1. Share the data adaptor used in your Grid application.
 
  1. Explain the issues that you are facing at the server side with batch edit mode.
 
  1. Are you facing issues in receiving the batch requests at the server side?
 
  1. Share the screenshot or video demonstration of the reported issue.
 
  1. Share the Syncfusion package version.
 
Regards, 
Ajith G. 



JV JORGE V replied to Ajith Govarthan December 14, 2021 05:49 PM UTC

Hi,

   Finally, I've overwrite the method batchRequest, I send a command "put" with the rows added, modified and deleted.

...

batchRequest(dm, changes, e) {

      return {

        type: 'PUT',

        url: dm.dataSource.url,

        data: JSON.stringify(changes.changedRecords.concat(changes.addedRecords).concat(changes.deletedRecords.map((obj) => { obj.accion = 'delete'; return obj; })))

    };

Jorge




AG Ajith Govarthan Syncfusion Team December 17, 2021 04:07 AM UTC

Hi JORGE, 

Thanks for the update. 

We are happy to hear that you have found solution at your end and thanks for sharing the solution with us. 

Please get back to us if you need further assistance. 

Regards, 
Ajith G. 


Loader.
Up arrow icon