How to supress loading DocumentHost?

4 posts, 0 answers
  1. Daniil
    Daniil avatar
    5 posts
    Member since:
    Sep 2011

    Posted 30 Oct 2013 Link to this post

    Hello.

    Could you help to resolve my issue. My application is similar VS. I have panes like Project Explorer, Database Explorer etc. All those panes are not in DocumentHost. DocumentHost is empty by default (see code):

    <telerikDocking:RadDocking.DocumentHost><br>
                <telerikDocking:RadSplitContainer x:Name="selectedItemBinder"><br>
                    <b><telerik:RadPaneGroup DataContext="{Binding Panes}" x:Name="radPaneGroup" SelectedItem="{Binding ElementName=selectedItemBinder, Path=DataContext.SelectedPane, Mode=TwoWay}" local:RadPaneExtension.ItemsSource="{Binding}"/></b><br>
                </telerikDocking:RadSplitContainer><br>
            </telerikDocking:RadDocking.DocumentHost>


    So, you can see the content of DocumentHost is binded to property in my viewmodel. When I try to save layout all document panes are included too into xml, but I do not need them. And after, when I try to load back my layout the Documents pane are restoring too with no content (just empty).

    How to supress loading DocumentHost when restoring layou?

    Thanks in advance!
  2. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 04 Nov 2013 Link to this post

    Hello,

    In the current version of RadDocking all of the RadPanes/RadPaneGroups and RadSplitContainers that are declared in the xaml of the control are being saved with the built-in Save/LoadLayout functionality. In order to mark a RadPaneGroup/RadSplitContainer to be excluded from the Save/LoadLayout functionality all you need to do is set the IsAutoGenerated property to True.

    You can take a look at our online SDK example about AutoGenerated tags here. You can download the entire Telerik SDK repository as a zip file via this link.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Daniil
    Daniil avatar
    5 posts
    Member since:
    Sep 2011

    Posted 05 Nov 2013 Link to this post

    Hello!
    Thank you for your reply. But currenlty I get exception when try to load saved layout:

    "Specified argument was out of the range of valid values. Parameter name: elementTypeName"


    :(
  5. Vladi
    Admin
    Vladi avatar
    744 posts

    Posted 06 Nov 2013 Link to this post

    Hi Daniil,

    We are not aware of such issue in the current version of RadDocking when using the built-in save and load functionality. Was this exception shown only after setting the IsAutoGenerated property?

    Could you try to recreate the issue in a sample project and send it in a support thread in order for us to be able to observe it and see what could be the cause of it.

    Regards,
    Vladi
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top