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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Update Cell

Thread ID:





120551 Sep 24,2015 08:19 PM UTC Sep 25,2015 06:38 AM UTC JavaScript 1
Tags: ejGrid
Asked On September 24, 2015 08:19 PM UTC

Hi Team,

I understand you could update a record in the grid using updateRecord(fieldName, data).
But is there a way to update just a single cell in the record? 

I have a inventory grid set on "batch" edit mode, and I want it set so that the value of one cell changes based on the value edited on the other.

Is that possible? Thanks

Gowthami V [Syncfusion]
Replied On September 25, 2015 06:38 AM UTC

Hi Lory,

Thanks for contacting Syncfusion support.

We can achieve your requirement by using “setCellValue” method of the grid as follows,

<script type="text/javascript">

        $(function () {
. . . .
. . . .
editSettings: { allowEditing: true, allowAdding: true, allowDeleting: true, editMode: "batch" },
. . . .
. . . .

cellSave: function (args) {

                    if (args.columnName == "EmployeeID" && args.value == 5) {

//Getting the index of the edited cell row

                        var index = this.getIndexByRow(args.cell.parent());

//Updating the cell value of the Freight column

                        this.setCellValue(index, "Freight", 0);






We have created a sample with your requirement like editing the EmployeeID column cell has value “5” then the Freight column cell value will be updated as “0” using setCellValue method of the grid.

Please refer the below link for the sample demo,


Gowthami V.


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