Programatically setting RadPanelBarItem visual state

2 posts, 0 answers
  1. Jon
    Jon avatar
    9 posts
    Member since:
    May 2010

    Posted 10 Jun 2010 Link to this post

    Hi,

     

    We have a user control with a RadPanelBar placed horizontally to act as an accordion. When our user control loads, we expand a particular RadPanelBarItem by setting IsExpanded to true. This works, but the ‘Expanded’ visual state is not triggered. The ‘Expanded’ VisualState is set against the ‘RootElement’ Grid control. We have programmatic access to the grid control but cannot call VisualStateManager.GoToState(...) on the control, as the grid object is a FrameworkElement and VisualStateManager.GoToState(...) requires a control that inherits from Control. How do we trigger this state change?

     

    Please note that this forum post is a copy of support ticket #317830 that I raised.


    Thank you for your time and I look forward to hearing from you soon.
    Jon Brasted

  2. Kiril Stanoev
    Admin
    Kiril Stanoev avatar
    1511 posts

    Posted 15 Jun 2010 Link to this post

    Hi Jonathan,

    I've posted a reply to your other thread. Have a look at it and let me know how it goes.

    Regards,
    Kiril Stanoev
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. DevCraft banner
Back to Top