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

RadPanelBar as an accordion panel

3 Answers 564 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Abhi
Top achievements
Rank 1
Abhi asked on 20 Mar 2012, 04:30 AM
I am attempting to use  RadPanelBar as accordion panel, where all the items are independently expanded or collapsed.
When I do the data binding though, all the controls are appearing in the header.
After looking around, I understand that I need to use a hierarchical data template. I would greatly appreciate any pointers or sample code in achieving this.

3 Answers, 1 is accepted

Sort by
0
Tina Stancheva
Telerik team
answered on 22 Mar 2012, 04:40 PM
Hi Abhi,

You can follow this tutorial to display a hierarchical data in the RadPanelBar control. I hope it will help you get started, still let us know if we can further assist you.

Regards,
Tina Stancheva
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Emmanuel
Top achievements
Rank 1
answered on 03 Mar 2014, 01:29 PM
Hey, 

I have the same issue.

I want to use the RadPanelBar in a accordion mode with a ItemSource.
How can I display a HeaderedContentControl in this control ?

Regards,
0
Boris
Telerik team
answered on 06 Mar 2014, 02:18 PM
Hello Marc,

RadPanelBar is an ItemsControl which derives from RadTreeView and as such you can apply the HeaderedContentControl through the ItemTemplate property. 

We used the approach described in this help article and modified it in order to apply a HeaderedContentControl on the second level of the RadBanelBar.

We hope the solution will help you proceed further with your scenario.

Regards,
Boris Penev
Telerik

DevCraft Q1'14 is here! Join the free online conference to see how this release solves your top-5 .NET challenges. Reserve your seat now!

Tags
PanelBar
Asked by
Abhi
Top achievements
Rank 1
Answers by
Tina Stancheva
Telerik team
Emmanuel
Top achievements
Rank 1
Boris
Telerik team
Share this question
or