Skip to content

tree_grid ​

A tree. Type is tree_grid. The shape matches data_grid: Component, Toolbar, and Grid. Lowercase keys in Option.Grid are dxTreeList options. The parent field is usually parentIdExpr together with keyExpr.

Component uses the same LoadSql, InsertRowSql, UpdateRowSql, and DeleteRowSql. Button names are the same set as the grid.

Where it differs from a grid ​

The query result has to include roots. Leaves alone leave the tree without a top. Keep a column that identifies the root (for example root, or an equivalent root id), plus id and parent_id (or path). When a parent is missing from the result, the engine inserts a root stub.

Group rows use Component.Folder:

KeyMeaning
FieldWhich field marks this row as a group row
ExprOr an expression that decides it
TrueValue / FalseValueValues of Field that mean group row and normal row
OnlyEditableFieldsColumns that stay editable on a group row
ReadOnlyFieldsColumns that are read-only on a group row

AddFolder, ExpandAll, CollapseAll, MoveUp, and MoveDown on the toolbar are for the tree. MoveUp and MoveDown use Component.SeqField.

This describes the platform. One customer’s business tables are not in these docs.