This walkthrough shows you how to use OnExitEditMode client side event.
In this topic, you will learn the basic thing on how to modify other cell's value based on the selected value using OnExitEditMode.
To modify other cell's value based on the selected value using OnExitEditMode
- Select WebGrid's instance and press F4.
- In Layout Settings, select ClientSideEvents, then set OnExitEditMode to WebGrid1_OnExitEditMode.
- Write the following function in OnExitEditMode client side event:
JavaScript Copy Code function WebGrid1_OnExitEditMode(controlId, tblName, editObject) { var WebGrid1 = ISGetObject(controlId); var editObj = editObject.element.value; if (editObj == "Brad") { var selObj = WebGrid1.GetSelectedObject(); var cell = selObj.ToRowObject().GetCells(); cell[9].SetText("UK", true); cell[9].SetValue("UK"); } return true; }
- Run the project.
References
OnExitEditMode Property
Other Resources
Walkthrough Topics
How-to Topics