I am trying to get a multi-level hierarchical grid working. My data can be of any levels i.e. each record could be 1, 2, 3, 4, 5 ... n levels. I tried modifying the CustomersVert grid LoadCustomers() method. It is not working.
Can you let me know how to get multi-level hierarchies working?
Please find the attached sample.
ADAdministrator Syncfusion Team February 19, 2003 08:45 PM UTC
I modified your sample. The original idea with such scenarios is that you add hierarchy levels on demand. I do that in the code in the RowExpanding event handler.
However, I found there is some issue right now in the grid that when the first record in a hierarchy has no children, you won't be able to add children levels.
We will look into this and enable better support for such scenario in the next version. Right now this does not work very well.
ADAdministrator Syncfusion Team February 20, 2003 12:43 PM UTC
As you said, it is not working properly.
The Hierarchical grid should show the vertical lines from the tree expansion node(with plus or minus) to the child nodes and offset the child nodes from parent node. Otherwise, the user will have no idea about the child-parent relationship. VirtualTreeGrid sample is excellent in this aspect, showing the vertical lines and ofsetting the cells. But it will not work with complex tree structures with multiple nodes with child nodes with child nodes i.e. there will be multiple vertical lines per cell.
Hope these things will be added to the next release iwht better support for hierarchical grid.