SMART datagrid v.1 > Classes > GridDataSet
DataLudi.GridDataSet.getValues method
Return the field values of data row which is specified by row as array.
getRowObject is returned as JSON object.
(In the version before "1.3.0", it uses getRow instead.)
function getValues (row: Integer): [*];
- Returns
- [*]
- Parameters
- row - Integer. required.
Code -1
var row = grid.focusedDataRow();
if (row) {
var values = ds.getValues(row.dataIndex());
$('#addr').val(values[0]);
#('#salary').val(values[1]);
}
- Note
- The returned array is the copy of data which is stored in data set. In other words, even if update the returned array, it will not be reflected in data set.
- Like other method, you must not update Date object which is returned from DATETIME field.
- See Also
- getValue
- getRowObject
- getFieldValues
- Examples
- Grid Data Set Rows