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

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

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.

 

Article ID: Published Date: Last Revised Date: Platform: Control:
9025 07/25/2018 07/25/2018 ASP.NET Web Forms Grid
Tags:
Did you find this information helpful?
Add Comment
You must log in to leave a comment

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.