Skip to main content

Data types

This example demonstrates different ways of defining ids in data

You can define IDs for your tree nodes yourself (they have to be of type number or string). Alternatively, if IDs are not defined, flattenTree() will create sequential, unique node IDs. If you are loading TreeView data asynchronously, it is recommended to define IDs yourself.

IDs defined by consumer (you)

IDs set by flattenTree()