Get data from response datamanager Call

Hi,
I use grid and I want to get data from response of datamanager call after save one item.
someone can help me please?
Thank you

3 Replies 1 reply marked as answer

SK Sujith Kumar Rajkumar Syncfusion Team January 25, 2021 10:40 AM UTC

Hi Andry, 
 
Greetings from Syncfusion support. 
 
Based on the query, we would like to let you know that when remote data adaptor is used for binding data to the Grid, it will automatically send data(along with action queries) to the remove server for each Grid action including CRUD operations. And based on the response returned it will update the corresponding data in the Grid. This is its default behavior. You can check this case and more details for the available adaptors from the below documentation links, 
 
                               https://ej2.syncfusion.com/angular/documentation/grid/edit/#url-adaptor  
 
Please let us know your exact requirement based on which we will validate from our end and provide the further details. 
 
Regards, 
Sujith R 


Marked as answer

AC Andry Christian February 3, 2021 03:01 PM UTC

Hi,
thank you for your answer.
After saving, my back-end return Id of created object and I want to get this Id
Thank you


SK Sujith Kumar Rajkumar Syncfusion Team February 4, 2021 10:41 AM UTC

Hi Andry, 
 
Based on the provided information we suspect that you are trying to access a data that you are returning from server(on performing save operation) to the Grid when remote data is bound to it. If so, you can use the Grid’s beforeDataBound event(Triggers before data is bound) where you will be able to retrieve the response data from the http request as shown in the below image, 
 
 
 
 
If we misunderstood your query or if you require any further assistance, then please get back to us. 
 
Regards, 
Sujith R 


Loader.
Up arrow icon