Thanks for writing.
event does not guarantee you that you will get access to all previously expanded items.
Here's an approach that should be working correctly:
sender, ExpandedStateChangedEventArgs e)
.lastExpandedItem = (sender
What I am doing is handling the ExpandedStateChanged
event of the RadExpanderControl
in my item template. I have a lastExpandedItem
field that is the same type as my business objects. Each time the ExpandedStateChanged
event is fired, I check if the last expanded item has been initialized and set its IsExpanded
property to false. After that I reinitialize this field with the new item that has been expanded.
I hope this is helpful.
Have a suggestion or face a problem - you can use the Ideas & Feedback portal
to submit ideas, feedback and vote for them.