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

RadPane loses content

1 Answer 153 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Riccardo
Top achievements
Rank 1
Riccardo asked on 26 May 2009, 01:35 PM
Hi forum people, I've still checked a little bug.
If you put into a RadPaneGroup some RadPane(s) with different content declaration, which with content declared "nested"  (<radpane><something...></radpane>),when you switch tab, lose content.
If you undock that "loser" pane from dock group, content re-appers.

 <radDock:RadPaneGroup> 
                    <radDock:RadPane Header="Pane0" IsPinned="true" CanUserClose="False" > 
                        <TextBlock TextWrapping="Wrap" 
                                        Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
                    </radDock:RadPane> 
                    <radDock:RadPane Header="Pane0" IsPinned="true" > 
                        <TextBlock TextWrapping="Wrap" 
                                        Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
                    </radDock:RadPane> 
                    <radDock:RadPane Header="Pane0" IsPinned="true" > 
                        <TextBlock TextWrapping="Wrap" 
                                        Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
                    </radDock:RadPane> 
                    <radDock:RadPane x:Name="PLTest" content="My content is here!" header="Test"></radDock:RadPane> 
                </radDock:RadPaneGroup> 


Thanks

1 Answer, 1 is accepted

Sort by
0
Accepted
Miroslav Nedyalkov
Telerik team
answered on 27 May 2009, 02:17 PM
Hi Riccardo,

Thank you for your report!

This is a bug in the Silverlight ContentPresenter. Show shouldn't use string content, because the ContentPresenter (that is used to display Pane's content) breaks. Just wrap it into some visual element (TextBlock for example) or put a ContentTemplate to the pane to show the string content as shown below:
<radDock:RadDocking> 
    <radDock:RadSplitContainer> 
        <radDock:RadPaneGroup> 
            <radDock:RadPane Header="Pane0" IsPinned="true" CanUserClose="False"
                <TextBlock TextWrapping="Wrap"  
                        Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
            </radDock:RadPane> 
            <radDock:RadPane Header="Pane0" IsPinned="true"
                <TextBlock TextWrapping="Wrap"  
                        Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
            </radDock:RadPane> 
            <radDock:RadPane Header="Pane0" IsPinned="true"
                <TextBlock TextWrapping="Wrap"  
                        Text="On the Documents tab above press Ctrl + Mouse Left button to display the Popup Menu. You can use the same combination on every tab." /> 
            </radDock:RadPane> 
            <radDock:RadPane x:Name="PLTest" Content="My content is here!" Header="Test"
                <radDock:RadPane.ContentTemplate> 
                    <DataTemplate> 
                        <TextBlock Text="{Binding}" /> 
                    </DataTemplate> 
                </radDock:RadPane.ContentTemplate> 
            </radDock:RadPane> 
        </radDock:RadPaneGroup> 
    </radDock:RadSplitContainer> 
</radDock:RadDocking> 

Hope this helps.

Regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the newTelerik Support Portal.
Check out the tipsfor optimizing your support resource searches.
Tags
Docking
Asked by
Riccardo
Top achievements
Rank 1
Answers by
Miroslav Nedyalkov
Telerik team
Share this question
or