We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

Save data after setCellValue

I've a EJS Grid with EditMode.Normal, and .DataSource(dataManager => {dataManager.Url("/Home/UrlDatasourceProducts").Adaptor("UrlAdaptor").InsertUrl("/Home/InsertProducts").UpdateUrl("/Home/UpdateProducts").RemoveUrl("/Home/DeleteProducts")

in a script I call: gridObjProducts.setCellValue(IdProduct, "Quantity", NewQuantity);
and the cell modify correctly, but how can I save data to DataSource?


3 Replies

HJ Hariharan J V Syncfusion Team June 24, 2019 09:16 AM UTC

Hi Massimo, 

Thanks for contacting Syncfusion support. 

We have analyzed your query. We would like to inform you that if you use the “setCellValue” method, then it will just change the display value for the particular cell in Grid and will not update the dataSource. So based on your requirement, we would like to suggest you to use the “updateRow” method of Grid. Please refer the documentation link below, 

gridObjProducts.editModule.updateRow(rowIndex, rowData);                // Here pass the data To be updated to the Grid. 

Please get back to us if you need further assistance. 


MA Massimo June 24, 2019 11:56 AM UTC

Ok, Thank you very much.

HJ Hariharan J V Syncfusion Team June 25, 2019 11:05 AM UTC

Hi Massimo,

Thanks for your update.

We are happy to hear that the last provided sample was helpful.


Live Chat Icon For mobile
Up arrow icon