Use wgGetRootRow function to get root row of ColumnSet or PreviewRow layout in client side.
This topic will show you how to get root row.
To get root row in WebGrid's ColumnSet
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- You can get grid's row in ColumnSet by simply using:
-
JavaScript Copy Code function SelectRow()
{
var grid = ISGetObject("WebGrid1");
var rowElm = grid.GetSelectedObject().GetRowObject().GetElement();
var rootRow = wgGetRootRow(rowElm);
}
Other Resources
Walkthrough Topics
How-to Topics