The user can enable/disable lines between TreeGrid nodes (disabled by default) including dhtmlxtreegrid_lines.js into the page and calling the following command:
treegrid.enableTreeGridLines(true);
In addition to standard dhtmlxGrid Math formulas, TreeGrid has the ability to calculate totals for children values:
treegrid.setColTypes("ed,ed,ed,ed,ed[=sum]");
This means that each parent element in the last column will contain the sum of cells in child rows of the same column.
TreeGrid provides additional set of built-in statistics counters (default statistics counters work only against visible rows, and will not work correctly in case of the treegrid where some rows can be hidden in closed branches). There are the following statistics counters available:
stat_tree_total - counts total of all values in a column;
stat_tree_total_leaf - counts total of all values in a column, but includes only values on the last level of the tree;
stat_tree_multi_total - counts total of column multiplication;
stat_tree_multi_total_leaf - counts total of column multiplication, but includes only values on the last level of the tree;
stat_tree_max - counts maximal value in a column;
stat_tree_max_leaf - counts maximal value in a column, but includes only values on the last level of the tree;
stat_tree_min - counts minimal value in a column;
stat_tree_min_leaf - counts minimal value in a column, but includes only values on the last level of the tree;
stat_tree_average - counts average value in a column;
stat_tree_average_leaf - counts average value in a column, but includes only values on the last level of the tree;
stat_tree_count - counts a real count of items in the TreeGrid;
stat_tree_count_leaf - counts a real count of items in the TreeGrid, but includes only values on the last level of the tree.
Drag-And-Drop behavior for TreeGrid can be set in the following way:
treegrid.setDragBehavior(mode);
It is possible to select one of the following modes:
child - the item is dropped as a child of the target item;
sibling - the item is dropped as a sibling of the target item; if drop occurs between the parent and the child elements, the item is moved on the parent level;
complex - the item is dropped as a sibling or a child depending on the position of the target item towards the landing; if drop occurs between the parent and the child elements, the item is moved on the parent level;
sibling-next - the item is dropped as a sibling of the target; if drop occurs between the parent and the child elements, the item is moved on the child level;
complex-next - the item is dropped as a sibling or a child depending on the position of the target item towards the landing; if drop occurs between the parent and the child elements, the item is moved on the child level.