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
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Save data after setCellValue

Thread ID:





145428 Jun 21,2019 08:42 AM UTC Jun 25,2019 11:05 AM UTC ASP.NET MVC - EJ 2 3
Tags: Grid
Asked On June 21, 2019 08:42 AM UTC

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?


Hariharan J V [Syncfusion]
Replied On 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. 


Replied On June 24, 2019 11:56 AM UTC

Ok, Thank you very much.

Hariharan J V [Syncfusion]
Replied On 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.



This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon