WebGrid ColumnSet Global Functions
wgGetColumnSetRows |
Description Gets the column set rows of specific row. Parameters
Return Value
//get grid object
var grid = ISGetObject("WebGrid1"); //get row element var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the arrays contain columnset rows var arr = wgGetColumnSetRows(rowElm) |
wgGetLowestColumnSetRow |
Description Gets the lowest column of the column set rows. Parameters
Return Value
//get grid object
var grid = ISGetObject("WebGrid1"); //get row element var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the lowest column set row wgGetLowestColumnSetRow(rowElm) |
wgGetColumnSetRowByPos |
Description Gets the row html element of the specified position in ColumnSet rows. Parameters
Return Value
// get the grid Object.
var grid = ISGetObject("WebGrid1"); // get HTML body of the table element. |
wgGetColumnSetRow |
Description Gets the first/root row HTML element of column set rows. Parameters
Return Value
//get grid object
var grid = ISGetObject("WebGrid1"); //get row element of the grid object var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the HTML first row element. var row1 = wgGetColumnSetRow(rowElm) |
wgGetCSCellByPosition |
Description Gets the ColumnSet cell by specified position. Parameters
Return Value
//get grid object.
var grid = ISGetObject("WebGrid1"); //get row element object of the grid. var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get HTML cell element by using the row element and positions. var cell = wgGetCSCellByPosition(rowElm,1,1,1) |
wgGetCSCellByName |
Description Gets the ColumnSet cell html element by column's name. Parameters
Return Value
//get grid object
var grid = ISGetObject("WebGrid1"); //get row element var rowElm = grid.GetSelectedRow().GetRowObject().GetElement(); //get cell HTML element sorted by lastname with row element. var cellname = wgGetCSCellByName(rowElm,"LastName") |
wgGetCSPosByRL |
Description Gets the column set position by row layout. Parameters
Return Value
//get the grid object.
var grid = ISGetObject("WebGrid1"); //get row element. var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get row layout by using column name, in this case we use "city". var cityrl = grid.RootTable.GetRowLayoutByColName("City"); //get ColumnSet position by using row layout. var pos = wgGetCSPosByRL(cityrl) |
wgGetLastEditableCSCell |
Description Gets the last editable ColumnSet cell. Parameters
Return Value
|
wgGetPrevEditableCSCell |
Description Gets previous editable column set cell. Parameters
Return Value
//get grid object
var grid =ISGetObject("WebGrid1"); //get row element var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the previous editable cell of the ColumnSet. var cdcell = wgGetPrevEditableCSCell(rowElm.cells[1],1) |
wgGetCSPrevEditableCell |
Description Gets the previous editable cell in the column set. Parameters
Return Value
//get grid object
var grid = ISGetObject("WebGrid1"); //get row element var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get cell element with n is an integer var cellElm = rowElm[n]; //get previous editable cell of columnset var cell = wgGetCSPrevEditableCell(rowElm.cells[1],rowElm) |
wgGetCSLastEditableCell |
Description Gets the last editable cell in the column set. Parameters
Return Value
//get grid object
var grid = IsGetObject("WebGrid1"); //get the row element var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the last editable cell of the columnset var crow = wgGetCSLastEditableCell(rowElm) |
wgGetCSFirstEditableCell |
Description Gets the first editable cell in the column set. Parameters
Return Value
//get grid object
var grid = IsGetObject("WebGrid1"); //get the row element var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the first editable cell of the columnset var crow = wgGetCSFirstEditableCell(rowElm) |
wgGetCSPrevEditableRow |
Description Gets the last editable row in the column set. Parameters
Return Value
//get the grid object
var grid = ISGetObject("WebGrid1"); //get table element var tblElm = grid.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); //get row element var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get columnset previous editable row wgGetCSPrevEditableRow(tblElm,rowElm.cells[1],1,1,false) |
wgGetPrevCSRow |
Description Gets the previous column set row. Parameters
Return Value
//get grid object
var grid = ISGetObject("WebGrid1"); //get table element of the grid var tblElm = grid.RootTable.GetElement(WG40.BODY,WG40.HTMLTABLE); //get row element of the grid var rowElm = grid.GetSelectedObject().GetRowObject().GetElement(); //get the previous columnset row var row = wgGetPrevCSRow(tblElm,rowElm) |