Use ExpandChildRow function to expand/collapse WebGrid child row in client side.
This topic will show you how to expand/collapse WebGrid's child row.
To expand/collapse WebGrid's child row
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- You can expand/collapse grid's child row by simply using:
-
JavaScript Copy Code function expandChildRow()
{
var WebGrid1 = ISGetObject(controlId);
var row = WebGrid1.RootTable.GetRowByKeyValue("ANATR");
row.ExpandChildRow(true);
return true;
}function collapseChildRow()
{
var WebGrid1 = ISGetObject(controlId);
var row = WebGrid1.RootTable.GetRowByKeyValue("ANATR");
row.CollapseChildRow(true);
return true;
}
Other Resources
Walkthrough Topics
How-to Topics