Use wgGetRowByPosition function to get WebGrid row using index in client side.
This topic will show you how to get WebGrid's row using wgGetRowByPosition.
To get WebGrid's row by index
- Drag WebGrid instance into the WebForm.
- Add a client side function on your code.
- You can get the grid's row by index simply by using:
-
JavaScript Copy Code function GetRowElement() { var grid = ISGetObject("WebGrid1"); var htmlTbl = grid.RootTable.GetElement(WG40.BODY, WG40.HTMLTABLE); var htmlRowElm = wgGetRowByPosition(htmlTbl, 0); alert(htmlRowElm.type); return true; }
Other Resources
Walkthrough Topics
How-to Topics