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

DevExpress-Examples/devextreme-datagrid-update-multiple-cells

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

Does this example address your development requirements/objectives?

(you will be redirected to DevExpress.com to submit your response)