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

Binding RadDocumentPanes to a collection

7 Answers 130 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Dennis
Top achievements
Rank 1
Dennis asked on 30 Jan 2010, 08:19 PM
We are trying to bind a collection of items to a set of RadDocumentPanes through the ItemsSource & SelectedItem properties on the RadPaneGroup control. Unfortunately we were unable to create viable documents in this manner, and had to create a custom converter to return our items wrapped as RadDocumentPanes. Is this a limitation of the Rad control or is there a better way to do this? 

7 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 01 Feb 2010, 10:31 AM
Hello Dennis,

 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.
0
Matt
Top achievements
Rank 1
answered on 26 Apr 2010, 05:38 PM
Is this going to be addressed going forward? I was looking into how you can bind the RadPaneGroup to a collection of RadPanes that is populated by MEF via a View model. I don't want to start putting stuff in the code behind for the view. Are there any other ways of achieving this in the meantime?

Thanks
0
Miroslav Nedyalkov
Telerik team
answered on 29 Apr 2010, 12:16 PM
Hi Matt,

 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.
0
Syam
Top achievements
Rank 1
answered on 05 Oct 2011, 07:48 AM
Hi Miroslav,

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
0
Miroslav Nedyalkov
Telerik team
answered on 05 Oct 2011, 11:03 AM
Hi Syam,

 You might work this problem around by postponing the operation using Dispatcher.BeginInvoke.

Hope this helps.

Kind regards,
Miroslav Nedyalkov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

0
Peter
Top achievements
Rank 1
answered on 28 Jun 2012, 01:45 AM
Hi,

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
0
George
Telerik team
answered on 02 Jul 2012, 02:01 PM
Hello Peter,

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.

Greetings,
George
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
Docking
Asked by
Dennis
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Matt
Top achievements
Rank 1
Syam
Top achievements
Rank 1
Peter
Top achievements
Rank 1
George
Telerik team
Share this question
or