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

RadGrid / RadTreeView Combo

1 Answer 54 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 16 Oct 2008, 06:59 AM
How do I make a RadGrid with a RadTreeview beside it and they both relate the same Data? And If the RadTreeview is collapsed, the same data in the radgrid will not be shown. Thanks

1 Answer, 1 is accepted

Sort by
0
Iana Tsolova
Telerik team
answered on 20 Oct 2008, 01:31 PM
Hello Albert,

You can use self-referencing RadGrid to display the same data as the TreeView. Then you can handle the client-side events of the TreeView for OnClientNodeExpanded and OnClientNodeCollapsed to expand/collapse RadGrid hierarchy respectively. For your convenience I have prepared a sample project illustrating the suggested scenario.

Find more information about RadGrid hierarchy and client-side API in the following resources:
http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Hierarchy/SelfReferencing/DefaultCS.aspx
http://demos.telerik.com/ASPNET/Prometheus/Grid/Examples/Hierarchy/HierarchyLoadModeClient/DefaultCS.aspx

I hope this helps.

Best wishes,
Iana
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
Grid
Asked by
Albert
Top achievements
Rank 1
Answers by
Iana Tsolova
Telerik team
Share this question
or