Binding RadDocumentPanes to a collection

8 posts, 0 answers
  1. Dennis
    Dennis avatar
    7 posts
    Member since:
    Mar 2009

    Posted 30 Jan 2010 Link to this post

    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? 
  2. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 01 Feb 2010 Link to this post

    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.
  3. UI for WPF is Visual Studio 2017 Ready
  4. Matt
    Matt avatar
    6 posts
    Member since:
    Mar 2010

    Posted 26 Apr 2010 Link to this post

    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
  5. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 29 Apr 2010 Link to this post

    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.
  6. Syam
    Syam avatar
    13 posts
    Member since:
    Aug 2011

    Posted 05 Oct 2011 Link to this post

    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
  7. Miroslav Nedyalkov
    Admin
    Miroslav Nedyalkov avatar
    1718 posts

    Posted 05 Oct 2011 Link to this post

    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 >>

  8. Peter
    Peter avatar
    95 posts
    Member since:
    Mar 2009

    Posted 27 Jun 2012 Link to this post

    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
  9. George
    Admin
    George avatar
    1332 posts

    Posted 02 Jul 2012 Link to this post

    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 >>

Back to Top
UI for WPF is Visual Studio 2017 Ready