SMART datagrid v.1 > Classes > TreeDataSet
DataLudi.TreeDataSet.getJsonRows method
It returns child rows of data row which has been specified by parameter parent as the array of JSON object.
The bottom child rows will be added by the property specified by parameter "rowsProp".
function getJsonRows (parent: Integer|TreeDataRow, rowsProp: String, level: Integer): [Object];
- Returns
- [Object]
- Parameters
- parent - Integer|TreeDataRow.
It specifies
rowId or
TreeDataRow object.
If specify a row which does not exist like
null, it will return children of root row.
- rowsProp - String. Defaults to "rows".
The property name in which specifies child row array.
- level - Integer. Defaults to 0.
The maximum level of descendant row which will be contained in the returned object.
If do not specify or specify as less than 0, it will contain all descendant rows.
- Note
- Like other methods, you should not update Date object which is returned from DATETIME field.
Code -1
// Return all rows. The bottom child rows will be added by "rows" array property.
ds.getJsonRows(null, "rows");
- See Also
- getAllRows
- TreeDataRow
- Examples
- Hello Tree