Hi Danyelle,
Greetings from Syncfusion support.
Based on the query we could understand that your requirement is to update the data in the back-end using the controller method on performing the Grid CRUD actions alone. For this case, we suggest you to use the remote save adaptor for binding data to the Grid. With the remote save adaptor, you can directly set the model data as Grid’s data source and all the Grid actions will be performed in client-side except the CRUD actions. The CRUD actions can be mapped to server-side using the following properties - updateUrl, insertUrl, removeUrl, batchUrl, crudUrl.
This is demonstrated in the below code snippet,
@Html.EJS().DataSource(dataManager => { dataManager.Json(@Model.orderData.ToArray()).InsertUrl("/Home/Insert").RemoveUrl("/Home/Delete").UpdateUrl("/Home/Update").Adaptor("RemoteSaveAdaptor");}) |
So the corresponding controller action method defined for each CRUD action will be triggered with the action details. Using this you can update the data in your back-end and return back the response to the Grid in order to update it.
We have prepared a sample based on this for your reference. You can download it from the following link,
More details on the remote save adaptor can be found in the below help documentation site,
Please get back to us if you require any further assistance.
Regards,
Sujith R