RealGrid2 Guide
Tree
tree view

treeview

To express the hierarchical structure of data, a tree and a grid can be expressed simultaneously using a TreeView object.

Treeview restrictions

TreeView has some limitations unlike GridView.

  • RowGrouping: Trees do not support grouping.
  • Filtering: When a parent row is excluded by a filter, child rows are also excluded.
  • Sorting: When sorting, only children are sorted while maintaining the hierarchical structure.
  • Tree column: The column in which the tree is displayed is always the first column.
  • Use of HTML renderer is restricted to the first column where the tree is displayed.

Change tree expander icon

Set the expander icon of the tree grid to a + or - shaped image.

treeView.treeOptions.expanderIconStyle = "square" //Default "triangle"