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

How to supress loading DocumentHost?

3 Answers 38 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Daniil
Top achievements
Rank 1
Daniil asked on 31 Oct 2013, 02:44 AM
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!

3 Answers, 1 is accepted

Sort by
0
Vladi
Telerik team
answered on 04 Nov 2013, 11:28 AM
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 >>
0
Daniil
Top achievements
Rank 1
answered on 05 Nov 2013, 12:36 PM
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"


:(
0
Vladi
Telerik team
answered on 06 Nov 2013, 11:38 AM
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 >>
Tags
Docking
Asked by
Daniil
Top achievements
Rank 1
Answers by
Vladi
Telerik team
Daniil
Top achievements
Rank 1
Share this question
or