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.
- Define onEditorPreparing to override the built-in
onValueChangedevent handler for a lookup column editor. - Call the
setValuemethod 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
newDataparameter to update adjacent cells. Thevalueparameter represents an item you have selected.
- jQuery
- Angular
- Vue
- React
- ASP.NET Core
- [Index.cshtml](ASP.NET Core/Views/Home/Index.cshtml)
- DataGrid for DevExtreme - Display tooltip for data cells
- DataGrid for DevExtreme - How to allow users select multiple cells
(you will be redirected to DevExpress.com to submit your response)
