Version 1
Common Interface IHierarchyDescriptor GrapeCity DataViewsJS Interface

IHierarchyDescriptor Interface

Defines settings of hierarchical grouping

Heirarchy

  • IHierarchyDescriptor

Properties

Optional collapsed

collapsed: boolean

Specifies the initial collapse state of the tree node

Optional column

column: string

Specifies a column id that the tree node is displayed on

Optional footer

Specifies hierarchy footer settings

keyField

keyField: string

Specifies a column id whose dataField stores the name of the data item's unique field

Optional offset

offset: number | HierarchyOffsetFn

Specifies the offset for the entire tree column. This can be a callback function to customize the offset

Optional offsetUnit

offsetUnit: number

If offset is not specified, the offset is calculated by the node level and offsetUnit. The default value is 20px

parentField

parentField: string

Specifies a column id whose dataField stores the name of the data item's parent field