SMART datagrid v.1 > Classes > TreeRow

Back  Forward

DataLudi.TreeRow.hasChildren  property

If it is true, even if contain child rows, it will display in TreeView regardless of actually having child rows. 

In other words, it will display Tree Row as expandable state. Later, TreeView.onExpanding event will be fired when the user expands this tree row, and you can add child rows of TreeDataSet within event handler. 

This property will be reset as false after expanding tree row. After only loading the initial top rows by using this property and onExpanding event, you can implement UI which can restructure the tree only with rows of being expanded by user. 

Defaults to false.

Getter
function hasChildren(): Boolean
Setter
function setHasChildren(value: Boolean)
See Also
iconIndex
TreeView.onExpanding
count
TreeView
Tree Overview
Examples
Lazy Load Tree Data
Hello Tree