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

How to set one cell value based on the other cell value

Platform: ASP.NET Web Forms |
Control: Grid |
Published Date: July 25, 2018 |
Last Revised Date: July 25, 2018
Tags: editing, grid

This knowledge base explains how to set one cell value based on the other cell value in batch editing.

Solution:

We can achieve this requirement by bind keyup event for the columns using cellEdit event and set the value to other cell using setCellValue method of ejGrid.

  1. Render the Grid as follows.

HTML

 

JS

 

MVC

 

ASP

 

CORE

 

Angular

 

TS

 

  1. The cellEdit event get triggered when we edit for a cell in Grid. In this event we have bound the keyup event in setTimeOut and we have set the other cell value using setCellValue method of ejGrid.

 

Result:

Figure 1: At Initial Rendering with batch editing enabled.

 

Figure 2: At Freight column value get changed then CalculatedColumn value get changed.

 

Figure 3: At EmployeeID column value get changed then CalculatedColumn value get changed.

 

ADD COMMENT
You must log in to leave a comment

Please sign in to access our KB

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