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

[Solved] SelfHierarchy

2 Answers 84 Views
Grid
This is a migrated thread and some comments may be shown as answers.
tali
Top achievements
Rank 1
tali asked on 07 May 2009, 11:09 AM
Hi

I am using the grid with SelfHierarchy and it works fine. I tried to use the SelfHierarchy option on a grid with dynamically created columns. I'm creating and adding the columns dynamically in the Page_Load event handler, and after that i'm setting the grid's data source. The result I'm getting is only the first level- no children at all..  The children are not bound at all- i'm hitting the

ItemDataBound event handler only a few times (same number as first level records),

All properties of both grids are exactly the same. How can i get the self hierarchy to work on the grid with the dynamic columns?

TNX!
tali

 

2 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 08 May 2009, 08:05 AM
Hi Tali,

I am sending you a small runnable application which handles the desired functionality. Give it a try and see if it works for you or if I am leaving something out.

I hope this helps.

Best wishes,
Pavlina
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.
0
tali
Top achievements
Rank 1
answered on 12 May 2009, 07:12 AM
Thank you, the code helped
:)
Tags
Grid
Asked by
tali
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
tali
Top achievements
Rank 1
Share this question
or