Thanks for writing.
1. You will need to implement the logic that closes the previously opened expander on your side. It's quite simple - you need to subscribe for the ExpanderStateChanged
event within your DataBoundListBox' control template and save a reference to the business object which has been expanded. You can acquire it from the sender
argument within the event handler which is of type RadExpanderControl
. The Content
property of the expander will point to the item from your source. Each time this event comes, you will need to first check if there is already an expanded item, set its IsExpanded
property to false and store the newly expanded item on its place.
2. I am not quite sure if I correctly understand the scenario here. Any further details will be helpful. You can also share some code if you think it might be helpful.
Thanks for your time.
DevCraft Q1'14 is here! Watch the online conference to see how this release solves your top-5 .NET challenges. Watch on demand now.