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

On loading layout, content is not loading

4 Answers 215 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Nitin
Top achievements
Rank 1
Nitin asked on 23 Nov 2010, 01:15 PM
Hi,

I have two radpanes in RadDocking control. I have set serialization tag for both the RadPanes but still ElementLoading event is not getting fired.

Here is code :

<

 

 

telerik:RadDocking x:Name="radDocking" PaneStateChange="radDocking_PaneStateChange" ElementLoading="radDocking_ElementLoading">

 

 

 

 

<telerik:RadSplitContainer x:Name="radSplitContainer" InitialPosition="DockedRight" telerik:RadDocking.SerializationTag="splitcontainer">

 

 

 

 

<telerik:RadPaneGroup x:Name="radPaneGroup" AllTabsEqualHeight="True" telerik:RadDocking.SerializationTag="Group">

 

 

 

 

<telerik:RadPane x:Name="radPane1" Header="Pane 1" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="Pane1" >

 

 

 

 

<TextBlock Text="Pane 1"/>

 

 

 

</telerik:RadPane>

 

 

 

 

<telerik:RadPane x:Name="radPane2" Header="Pane 2" CanUserClose="False" CanDockInDocumentHost="False" telerik:RadDocking.SerializationTag="Pane2" >

 

 

 

 

<TextBlock Text="Pane2"/>

 

 

 

</telerik:RadPane>

 

 

 

 

</telerik:RadPaneGroup>

 

 

 

 

</telerik:RadSplitContainer>

 

 

 

 

</telerik:RadDocking>


Please help me out.

 

4 Answers, 1 is accepted

Sort by
0
Accepted
George
Telerik team
answered on 24 Nov 2010, 05:04 PM
Hello Nitin,

Could you please specify when you load the layout? Recently we found a bug in the RadDocking control when the layout is loaded in the Loaded event handler of the Window. 

Best wishes,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
0
Nitin
Top achievements
Rank 1
answered on 25 Nov 2010, 07:59 AM
Hi George,

Thanks to update me, now I am loading the layout in ContentRendered event of the Window and its working fine.
0
Carlos
Top achievements
Rank 1
answered on 13 Dec 2010, 11:55 AM
   Hi,

 I have a control that is normally initiallized in it's control.loaded sub. It use to work when outside the Dockpane, but when in a DockPane it fails to load. This is the code I'm ussing:
<telerik:RadDocking.DocumentHost>
    <telerik:RadPaneGroup x:Name="Group1" >
        <telerik:RadDocumentPane   CanFloat="False" CanUserPin="False"  CanUserClose="False"  PaneHeaderVisibility="Hidden" >
            <telerik:RadPane.Content>
                <Tg:WpfMap Name="WpfMap1" />
            </telerik:RadPane.Content>
        </telerik:RadDocumentPane>
    </telerik:RadPaneGroup>
</telerik:RadDocking.DocumentHost>

 In addition I don't know how to get rid of the PaneHeader it always appears even if it's empty as a little tab
0
George
Telerik team
answered on 16 Dec 2010, 01:25 PM
Hi Carlos,

I would suggest you to place the RadPaneGroup in a RadSplitContainer. For more information about how the RadDocking is structured, please refer to the following link - http://www.telerik.com/help/wpf/raddocking-getting-started2.html

To hide the RadPaneHeader, you could use PaneHeaderVisibility property - http://www.telerik.com/help/wpf/raddocking-how-to-remove-the-header-of-the-radpane.html 

All the best,
George
the Telerik team
Browse the videos here>> to help you get started with RadControls for WPF
Tags
Docking
Asked by
Nitin
Top achievements
Rank 1
Answers by
George
Telerik team
Nitin
Top achievements
Rank 1
Carlos
Top achievements
Rank 1
Share this question
or