This is a migrated thread and some comments may be shown as answers.

Allow only one expander expanded

2 Answers 275 Views
Expander
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 13 Aug 2012, 01:41 AM
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 Answers, 1 is accepted

Sort by
0
Hristo
Telerik team
answered on 14 Aug 2012, 07:25 AM
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.

0
Mark
Top achievements
Rank 1
answered on 15 Aug 2012, 01:45 AM
I see. Thanks for the reply. I'll try that.
Tags
Expander
Asked by
Mark
Top achievements
Rank 1
Answers by
Hristo
Telerik team
Mark
Top achievements
Rank 1
Share this question
or