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
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- You can get checked rows on button click by simply using:
-
JavaScript Copy 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;
}
}
Other Resources
Walkthrough Topics
How-to Topics