In certain cases, while editing you may want to change a column value based on the value selected in the ejDropdownlist control of another column.
On editing a record in the Grid, you can change the value of one column based on another columns’ value.
Changing the selectedItem of one DropDown based on another DropDown selected value
Figure 1: Initial rendering – Grid
Figure 2: On editing a record in Grid
Figure 3: SelectedItem in Description field corresponding to Sea Food name
Figure 4: On changing the value of the Name DropDown, the value of the Description field is changed and selectedItem is refreshed
Changing the value of a column based on the value selected in the DropDownList
Similarly on editing a Grid record, you can just change a column value based on another column DropDownList selected value. You can see in detail how to achieve this requirement.
Figure 5: Initial rendering – Grid
Figure 6: On editing a record in Grid
Figure 7: On changing the value of the Name DropDown, the value of the Description field column is changed
|Article ID:||Published Date:||Last Revised Date:||Platform:||Control:|
or the page will be automatically redirected to sign-in page in 10 seconds.