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

Supress save layout for any elements

1 Answer 56 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Nikolay Chekalkin
Top achievements
Rank 1
Nikolay Chekalkin asked on 20 Nov 2009, 01:39 PM
Hi.
I have form as show below.
<telerik:RadDocking x:Name="Docking"
        <telerik:RadDocking.DocumentHost> 
            <telerik:RadSplitContainer InitialPosition="FloatingDockable"
                <telerik:RadPaneGroup x:Name="DocumentGroup"
                        <telerik:RadPane Header="Pane1"></telerik:RadPane> 
                </telerik:RadPaneGroup> 
        </telerik:RadSplitContainer> 
   </telerik:RadDocking.DocumentHost> 
</telerik:RadDocking> 
How can i supress save layout for pane1? (Saving all exept Pane1)

1 Answer, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 23 Nov 2009, 05:35 PM
Hi Nikolay,

Unfortunately you cannot do this in the current version of the RadDocking control. What I would suggest you is to hook up to the ElementLoaded event of the Docking control and to hide the element you need to remove. This way the pane will not be visible when you load the layout. Here is an example:
private void docking_ElementLoaded(object sender, LayoutSerializationEventArgs e)
{
    var pane = e.AffectedElement as RadPane;
    if (e.AffectedElementSerializationTag == "pane1" && pane != null)
    {
        pane.IsHidden = true;
    }
}

Hope this helps.

Best wishes,
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.
Tags
Docking
Asked by
Nikolay Chekalkin
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or