WebGrid Events Global Functions
wgGetLastSelectedObject |
Description Gets grid last selected object. Return Value
|
wgGetValidActiveCell |
Description Gets the valid active cell of the grid. Parameters
Return Value
// get the grid Object.
var grid = ISGetObject("WebGrid1"); // get HTML row element. var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the valid active cell from the selected object var cell = wgGetValidActiveCell(rowElm.cells[2]); |
wgGetLastVisibleRow |
Description Gets the last visible row of the selected object. Parameters
Return Value
// get the grid Object.
var grid = ISGetObject("WebGrid1"); // get HTML body of the table element. var tblElm = grid.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); // get the last visible row wgGetLastVisibleRow(tblElm) |
wgGetLastChildVisibleRow |
Description Gets the last child of the visible row (intended intended to be used for advanced developers only, because the row element needs to be specific). Parameters
Return Value
|
wgGetPrevVisibleRow |
Description Gets the previous visible row. Parameters
Return Value
// get the grid Object.
var grid = ISGetObject("WebGrid1"); // get HTML body of the table element. var tblElm = grid.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); // get HTML row element. |