Disable expanding on RadPanelBarItem?

6 posts, 1 answers
  1. Erik
    Erik avatar
    24 posts
    Member since:
    Nov 2010

    Posted 05 Feb 2012 Link to this post

    Is it possible to force a RadPanelBarItem to be always open? (hide the expander button, disable double click on header)
  2. Answer
    Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 08 Feb 2012 Link to this post

    Hello Erik,

     Please check out the attached project where a possible approach is demonstrated. The Style of the PanelBarItems is edited in order to hide the "Arrow" ( its Opacity is set to 0). On the other hand, we have set only one RadPanelBarItem to be Expanded initially and we have globally set:

    IsExpandOnSingleClickEnabled="False"
    IsExpandOnDblClickEnabled="False"
      All the best,
    Petar Mladenov
    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. Erik
    Erik avatar
    24 posts
    Member since:
    Nov 2010

    Posted 08 Feb 2012 Link to this post

    Thanks Petar your solution works.

    RadPanelBar and RadPanelBarItem each expose a property named 'ExpanderStyle', can this property be used to modify the visualisation of the expander? (so that I don't have to template the entire RadPanelBar)
  5. Petar Mladenov
    Admin
    Petar Mladenov avatar
    2891 posts

    Posted 09 Feb 2012 Link to this post

    Hi Erik ,

     This property is inherited from RadTreeView but cannot be used in RadPanelBar. Please excuse us for the inconvenience caused.

    Kind regards,
    Petar Mladenov
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  6. Cameron
    Cameron avatar
    1 posts
    Member since:
    Oct 2012

    Posted 03 Jan 2013 Link to this post

    With the example you've attached, is there anyway to reduce what is being overwritten with the style for the RadPanelBarItem and only override the image. The reason I ask is because I would like to use one of the predefined themes offered and simply remove the image. It sure would be nice to have a property that can be set on the control to do this in a future release. Because if you look at the example given here...The use case suggested is if the properties: IsExcpandOnSingleClickEnabled and IsExpandOnDbleClickEnabled are both set to false, then having the expand image visible is meaningless, yes?

    Thanks
    Cameron
  7. Tina Stancheva
    Admin
    Tina Stancheva avatar
    3298 posts

    Posted 04 Jan 2013 Link to this post

    Hi Cameron,

    I can definitely see your point and this is why I've logged a feature request to expose a property to allow an easier customization of the expander indicator of each RadPanelBarItem. I also updated your Telerik account as a small sign of appreciation for sharing your feedback on the control.

    If, you'd like to track and/or vote for this task, you can do it in our PITS.

    Regards,
    Tina Stancheva
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Back to Top
UI for WPF is Visual Studio 2017 Ready