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

[Solved] Hierarchical Grid not expanding

3 Answers 215 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Phani Musale
Top achievements
Rank 1
Phani Musale asked on 04 Feb 2010, 01:09 PM
Hi,

I am trying to display data in a hierarchical grid. But after clicking on the expand link aginst teh master grid record, the hierarchical grid fails to expand. The event is successfully transferred to DetailTableDataBind event handler. Can I know what I am missing here?
I have the followoing code under my MasterTableView tag
<ExpandCollapseColumn Visible="True">

 

</ExpandCollapseColumn>
Is tehr anything else I need to do? What is the code snippet to forcibly expand the grid DetailTableDataBind event handler?

Thanks

 

3 Answers, 1 is accepted

Sort by
0
Pavlina
Telerik team
answered on 04 Feb 2010, 02:05 PM
Hi Phani,

Depending on the given information I suppose that the grid is not bound correctly when the levels are expanded. To get working hierarchy functionality you need to use advanced data-binding. When binding each detail table view, RadGrid fires the DetailTableDataBind event. The argument for a DetailTableDataBind event handler carries all the information you need for binding the detail table, including the table view that should be bound, its parent item, and so on.

Additionally, I will suggest you examine this online demo and describe what the difference in your implementation.

Best wishes,
Pavlina
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
0
Phani Musale
Top achievements
Rank 1
answered on 04 Feb 2010, 02:33 PM
Hi,

I am doing the binding at the Design time. So that doesn't seem to be the proble. One thing I forgot to add is that I am using a custom Grid, derived from the RadGrid. And within this custom grid I am trying to show the detail grid. Whereas this functionality works fine with the RadGrid, it doesn't work with teh custom Radgrid.
Are there any other things I should look at when using hierarchical grids in a custom RadGrid?

Thanks
0
Pavlina
Telerik team
answered on 08 Feb 2010, 12:18 PM
Hi Phani,

Based on the supplied information, it is hard to determine what is causing the hierarchical grid not expanding. In order to investigate the problem further, it will be best if you open a formal support ticket, and provide a small working project, which can be tested locally, in order to supply further information.

Greetings,
Pavlina
the Telerik team

Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Follow the status of features or bugs in PITS and vote for them to affect their priority.
Tags
Grid
Asked by
Phani Musale
Top achievements
Rank 1
Answers by
Pavlina
Telerik team
Phani Musale
Top achievements
Rank 1
Share this question
or