I've been trying to use a grid with hierarchy to show a list of items, which can have a parent and any number of children.
My object looks like this :
The data that will vary a lot, and the maximum depth cannot be assumed.
Everything I have read on the docs and forums leads me to the conclusion that each level of depth has to be declared manually and individually. For example, the code from this page creates 3 levels for different objects.No problem so far.
My problem is that I can't do this since there is no known max depth, and even then it would mean duplicating the code many times, making it very large and unreadable as the fields (from my ValueObject) used in the grid contain templates.
My object being "hierarchical" by nature, is there a way to make it so the grid can handle virtually any level of depth using a single DetailTemplate or something similar ?
Please let me know if you need any additionnal information.