SMART datagrid v.1 > Examples

[ grids ver.1.3.0]   Back  Forward

GridDataSet Rows  Example

There are many ways to get the values of the partial or entire rows of GridDataSet

Grid - 1
rows

Get the value of one field. Please refer to getValue

Get the values of one row to the array. Please refer to getValues and getRow

Get the values of one row to JSON object. Please refer to getRowObject

Get one or more rows to the array of which rows are composed of array. Please refer to getRows

Get one or more rows to the array of which rows are composed of JSON object. Please refer to getRowObjects

Get all rows. If do not specify the parameter when calling getRows or getRowObjects, it will get the entire rows. 

Code -1
    btnGetAll_click: function () {
        var rows = dsMain.getRows();
        dsMain2.setRows(rows);
    }
Grid - 2
rows

Get the specified field values of the entire rows or the rows contained in the specified range. 

Get the only values eliminating the duplication of the specified field. 

View Source JSP 

See Also
GridDataSet.getValue
GridDataSet.setValue
GridDataSet.getValues
GridDataSet.getRowObject
GridDataSet.getRows
GridDataSet.getRowObjects
GridDataSet.getFieldValues
DataSet.getDistinctValues
GridDataSet.appendRow
GridDataSet.appendRows
Examples
Grid Data Set Edit
Grid Data Set Export