SMART datagrid v.1 > Examples

Back  Forward

Tree DataSet  Example
no-lite

Tree Data Set is configured with hierarchical relationship of Data Row objects which have the values of the same field set. Please refer to Tree Overview topic for more details. 

All data rows can have Child Rows, and they can call TreeDataSet.addRow and add a new child row after the last one. 

Add the child row of the selected row. 

And, you can also insert in a specific location. 

Insert the child row of the selected row in the specified location. Insert At =>  

Tree - 1
rows

To modify or delete the existing row is similar to the case of GridDataSet

Update the selected row. New Country =>  

.softDelete .hideDeletedRows 

Delete the selected row. 

Delete the checked rows. 

Delete the selected rows. EditOptions.deletable should be true

You can use TreeDataSet.findRow to search the data row corresponding to the multiple field value. 

Tree - 2
rows

 Country:  Interest Rate:   

 Country:   

  

View Source JSP 

See Also
TreeDataSet.addRow
TreeDataSet.insertRow
TreeDataSet.updateRow
TreeDataSet.deleteRow
TreeDataSet.findRow
TreeView.getCheckedDataRows
GridBase.revealRow
Tree Overview
Examples
Load Tree Data