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

[Solved] hierarchical grid binding

2 Answers 151 Views
Grid
This is a migrated thread and some comments may be shown as answers.
bo
Top achievements
Rank 1
bo asked on 11 May 2009, 05:27 PM
i'm binding an hierarchical grid with a custom collection class of data with a nested collection...
my collection looks similar to this
-ID
-Type
-Description
+Items
         ID
         Type
          Description

so i bind the grid to the class then i use the itemdatabind event to bind the detailtable to my [Items]...i want to bind everything upfront so navigating through the 2nd level is quick...but when i expand a row, there is nothing appearing in the detailtable...where are my items?

am i taking the wrong approach to this? 


2 Answers, 1 is accepted

Sort by
0
Shinu
Top achievements
Rank 2
answered on 12 May 2009, 07:13 AM
Hi Bo,

Try binding the Detail table in the DetailTableDataBind event. Go through the following demo link to get more details about this event.
Programmatic Binding

Thanks
Shinu
0
Pavlina
Telerik team
answered on 12 May 2009, 07:45 AM
Hello Bo,

To avoid duplicate posts, we will continue our communication in the other (support ticket) post that you have opened on the matter.
When binding the detail tables in a hierarchical grid, you must provide some way of managing the data relationships between the data set for the detail tables and the records of the parent table. You can describe these relationships as shown in the following articles:
Hierarchical data-binding using declarative relations
Hierarchical data-binding using DetailTableDataBind event

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.
Tags
Grid
Asked by
bo
Top achievements
Rank 1
Answers by
Shinu
Top achievements
Rank 2
Pavlina
Telerik team
Share this question
or