Intersoft WebGrid Documentation
How-to: Get all pending changes in WebGrid
See Also Send comments on this topic.

Glossary Item Box

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

  1. Drag WebGrid and HTML button instances to your WebForm.
  2. You can get all changes in WebGrid that made during BatchUpdate operation by simply using:
    Javascript Copy ImageCopy Code
    function Button1_Click()
    {      
       var grid = ISGetObject("WebGrid1");      
       var allChanges = grid.GetChanges();      
       return true;
    }
    

  3. You can change the state variable to Added, Modified and Deleted. Depends on the row state that you want to get.
  4. Run the project.

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.