Intersoft WebGrid Documentation
How-to: Get checked rows on button click
See Also Send comments on this topic.

Glossary Item Box

GetCheckedRows function has ability to obtain all checked rows in WebGrid via client side.

This topic will show you how to obtain all checked rows using button click.

To obtain checked rows in WebGrid

  1. Drag WebGrid instance into the WebForm.
  2. Add a client side function on your code.
  3. You can get checked rows on button click by simply using:

  4. JavaScript Copy ImageCopy Code
    function CheckSelected()
    {
    var grid = ISGetObject("GlbWebGrid");
    var checkRows = grid.RootTable.GetCheckedRows();
    if(checkRows == '')
    {
    alert("Please select at least one item from the list.")
    return false;
    }
    }

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.