This is a migrated thread and some comments may be shown as answers.

[Solved] Dynamic Multi level Hierarchical Grid Issue

1 Answer 221 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Ravikumar
Top achievements
Rank 1
Ravikumar asked on 17 Jun 2009, 09:56 AM
Hi,

I need to create multilevel hierarchical grid at runtime. We needs to generate details table on tab out of the column of the parent grid.
For this scenario i have created grid dynamically and added template columns to it. The problem is i need to bind the grid each time i add the details table to it. This works fine for the first level. But when i change some value in first child grid and needs to open next level hierarchy grid, the gird does not display all the child level detail tables. This is because, when we rebind the grid the grid looses the data in the intermediate detail table and just displays the top level data.

Is there any way to maintain the state, and without binding is it possible to load details table dynamically.

Could anyone provide sample for loading multi level hierarchical grid dynamically at runtime based on the value entered in the parent grid.

Thanks
Ravi

1 Answer, 1 is accepted

Sort by
0
Accepted
Yavor
Telerik team
answered on 22 Jun 2009, 06:09 AM
Hello Ravikumar,

One possible option in this case would be to create the whole structure dynamically. This article contains a simple approach for creating a flat structure in correlation with a dropdown control, but the same approach is applicable for a hierarchy as well. I hope this information helps.

Kind regards,
Yavor
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Grid
Asked by
Ravikumar
Top achievements
Rank 1
Answers by
Yavor
Telerik team
Share this question
or