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

RadPane Hide Itself

1 Answer 90 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Ahmad
Top achievements
Rank 1
Ahmad asked on 10 Oct 2016, 01:02 PM

Hi,
I have a strange problem with docking control:
as you see in following code I have a unpinned RadPane(there are 4 tabs inside the RadPane). I hover mouse over RadPane and it appears.
when I click in TAB1 and click the Button and click TAB2, RadPane hides itself.
please help me to fix it.
thanks.

My code:

 <telerik:RadDocking HorizontalAlignment="Stretch">
            <telerik:RadSplitContainer MinWidth="300" InitialPosition="DockedRight">
                <telerik:RadSplitContainer >
                    <telerik:RadPaneGroup  >
                        <telerik:RadPane CanFloat="False" CanUserPin="True" CanDockInDocumentHost="False"
                                         x:Name="pane"
                                         CanUserClose="False" Header="PaneHeader"
                                         IsPinned="False" AutoHideWidth="300">
                            <telerik:RadTabControl>
                                <telerik:RadTabItem Header="TAB1">
                                    <Grid>
                                        <telerik:RadButton Content="Button"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB2" IsSelected="True">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB3">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                                <telerik:RadTabItem Header="TAB4">
                                    <Grid>
                                        <TextBlock Text="Nothing"/>
                                    </Grid>
                                </telerik:RadTabItem>
                            </telerik:RadTabControl>
                        </telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadSplitContainer>
        </telerik:RadDocking>

 

 

1 Answer, 1 is accepted

Sort by
0
Accepted
Nasko
Telerik team
answered on 11 Oct 2016, 08:33 AM
Hello Ahmad,

The observed by you issue seems to be caused by the TabControl. When you click between the tabs of the TabControl (tabs with content like the one with the Button) its Content gets loaded that on the other hand deactivates the currently selected Pane and because of that the Pane is closed. What we could suggest you is to set the IsContentPreserved property of the TabControl to True and everything should be working as expected:
<telerik:RadDocking HorizontalAlignment="Stretch">
    <telerik:RadSplitContainer MinWidth="300" InitialPosition="DockedRight">
        <telerik:RadSplitContainer >
            <telerik:RadPaneGroup  >
                <telerik:RadPane CanFloat="False" CanUserPin="True" CanDockInDocumentHost="False"
                                    x:Name="pane"
                                    CanUserClose="False" Header="PaneHeader"
                                    IsPinned="False" AutoHideWidth="300">
                    <telerik:RadTabControl IsContentPreserved="True">
                        <telerik:RadTabItem Header="TAB1">
                            <Grid>
                                <telerik:RadButton Content="Button"/>
                            </Grid>
                        </telerik:RadTabItem>
                        <telerik:RadTabItem Header="TAB2" IsSelected="True">
                            <Grid>
                                <TextBlock Text="Nothing"/>
                            </Grid>
                        </telerik:RadTabItem>
                        <telerik:RadTabItem Header="TAB3">
                            <Grid>
                                <TextBlock Text="Nothing"/>
                            </Grid>
                        </telerik:RadTabItem>
                        <telerik:RadTabItem Header="TAB4">
                            <Grid>
                                <TextBlock Text="Nothing"/>
                            </Grid>
                        </telerik:RadTabItem>
                    </telerik:RadTabControl>
                </telerik:RadPane>
            </telerik:RadPaneGroup>
        </telerik:RadSplitContainer>
    </telerik:RadSplitContainer>
</telerik:RadDocking>

Hope this helps.

Regards,
Nasko
Telerik by Progress
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
Docking
Asked by
Ahmad
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or