Allow only one expander expanded

3 posts, 0 answers
  1. Mark
    Mark avatar
    24 posts
    Member since:
    Jul 2012

    Posted 12 Aug 2012 Link to this post

    Hi,

    Is there a way to only allow one expander to be expanded? I have a group of expanders and I want only one expander expanded at a time.

    Thanks,
    Mark
  2. Hristo
    Admin
    Hristo avatar
    352 posts

    Posted 14 Aug 2012 Link to this post

    Hello Mark,

    There is no build in functionality supporting such a feature. However you could achieve your desired scenario via bindings.

    First, you should bind the Visibility of every Expander to a dedicated property.
    Second, in the property setter (or property change callback) you should trigger the synchronization logic and set other properties to collapsed when the current one is set to visible.

    Hope this helps. Please let us know if you need more info or face any issues.

    All the best,
    Hristo
    the Telerik team

    Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

  3. UI for WPF is Visual Studio 2017 Ready
  4. Mark
    Mark avatar
    24 posts
    Member since:
    Jul 2012

    Posted 14 Aug 2012 Link to this post

    I see. Thanks for the reply. I'll try that.
Back to Top