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
    Admin
    Tina Stancheva avatar
    3298 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.

    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 >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Emmanuel
    Emmanuel avatar
    8 posts
    Member since:
    Sep 2013

    Posted 03 Mar 2014 Link to this post

    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,
  5. Boris
    Admin
    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.

    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!

Back to Top