Skip to content

This example demonstrates how to update multiple cell values after a user selects an item in the editor.

License

Notifications You must be signed in to change notification settings

markallenramirez/devextreme-datagrid-update-multiple-cells

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DataGrid for DevExtreme - Update multiple cell values after selecting an item in a lookup column editor

This example demonstrates how to update multiple cell values after a user selects an item in the editor. In the example, when you select a new value in the "Name" column, the values in the "Address" and "Phone" columns also change.

DataGrid with updated cell values

Implementation Details

  • Define onEditorPreparing to override the built-in onValueChanged event handler for a lookup column editor.
  • Call the setValue method with the selectedItem option as a parameter to pass changes to the grid.
  • Define the setCellValue callback function in a lookup column and use the newData parameter to update adjacent cells. The value parameter represents an item you have selected.

Files to Review

Documentation

More Examples

About

This example demonstrates how to update multiple cell values after a user selects an item in the editor.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 54.7%
  • CSS 45.3%
  • TypeScript 0.0%
  • HTML 0.0%
  • C# 0.0%
  • Vue 0.0%