RadPanelBar as an accordion panel

4 posts, 0 answers
  1. Abhi
    Abhi avatar
    2 posts
    Member since:
    Mar 2012

    Posted 19 Mar 2012 Link to this post

    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.
  2. Tina Stancheva
    Tina Stancheva avatar
    3299 posts

    Posted 22 Mar 2012 Link to this post

    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.

    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 >>
  3. Emmanuel
    Emmanuel avatar
    8 posts
    Member since:
    Sep 2013

    Posted 03 Mar 2014 Link to this post


    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 ?

  4. Boris
    Boris avatar
    276 posts

    Posted 06 Mar 2014 Link to this post

    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.

    Boris Penev

    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!

Back to Top