7 Answers, 1 is accepted
Unfortunately this is not supported by the RadPaneGroup control. If you need to add and remove items from a RadPaneGroup you will need to use the Items collection instead.
Sincerely yours,Miroslav Nedyalkov
the Telerik team
Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
We are not planning to add this functionality directly to the PaneGroup as it is not supported by design. What I could suggest you is to implement custom attached property that will allow you to achieve this. Please find the attached project.
Best wishes,Miroslav Nedyalkov
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.
I am having a similar requirement for myself and I tried out the sample provided by you. The one problem I am facing with your example is that if i close a particular RadPane using the Close (X) button at the top right of the RadPane and then try adding a new RadPane, it throws a ArgumentOutOfRangeException. I guess this is due to the reason that, the ItemSource of the RadPaneCollection is not aware of that one item is removed from the collection when the close button is clicked. How do we achieve this?
Any help is appreciated.
Thanks
Syam
You might work this problem around by postponing the operation using Dispatcher.BeginInvoke.
Hope this helps.
Miroslav Nedyalkov
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>
Has there been any further updates or simplifications since the post containing the attached solution on 29 April 2010? I'm finding the attached project difficult to wrap my head around, and there seems to be parts in the attached project that require further work or that I need to modify myself.
Thanks
Please, refer to the following forum thread about using the RadDocking control in MVVM scenarios - http://www.telerik.com/community/forums/wpf/docking/data-templates-and-mvvm-support.aspx where you can find more information.
Hope this helps.
George
the Telerik team
Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>