WebGrid enhances its client side events by adding a method to get all pending changes.
In this topic, you will learn how to get all pending changes using GetChanges() method.
To get all pending in WebGrid
- Drag WebGrid and HTML button instances to your WebForm.
- You can get all changes in WebGrid that made during BatchUpdate operation by simply using:
Javascript Copy Code function Button1_Click() { var grid = ISGetObject("WebGrid1"); var allChanges = grid.GetChanges(); return true; }
- You can change the state variable to Added, Modified and Deleted. Depends on the row state that you want to get.
- Run the project.