Hello Ivan,
Thanks for the clarification. Another approach is to expand/collapse using a property within the ViewModel. This can easily be achieved using a binding within the ItemContainerStyle of RadPanelBar:
In the above example,
Property="IsExpanded" is the IsExpanded property of RadPanelBarItem, whether
Value="{Binding IsExpanded, Mode=TwoWay}" is the IsExpanded property of your ViewModel.
Now on a button click you can do something like this:
Please refer to the attached project for further information and let me know if this approach satisfies you.
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