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

Hiding RadDocumentPane Tab

4 Answers 316 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Steve
Top achievements
Rank 1
Steve asked on 03 Oct 2012, 10:24 PM
The documentation for How to Remove the Header of the PadPane clearly states that setting the RadDocumentPane Visibility to Collapsed and the CanUserClose to False will remove the Tab and Gray area; yet as illustrated in attached image this is not exactly the case. 

Apparently I am missing something.

Any help would be appreciated,
Steve

4 Answers, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 05 Oct 2012, 12:55 PM
Hello Steve,

Could please share with us which version of the controls you are using, as I tested with the latest available one and everything seems to work as expected?

Kind regards,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Steve
Top achievements
Rank 1
answered on 05 Oct 2012, 04:33 PM
WPF RadControls - 2012.2.912.40
0
Konstantina
Telerik team
answered on 11 Oct 2012, 09:05 AM
Hi Steve,

I am sending you the sample project I used to test the problem. However, everything seems to work as expected.
Could you please modify it in order to reproduce the issue and send it to us. In that way we will be able to track down the source of the problem in a timely manner.

All the best,
Konstantina
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

0
Steve
Top achievements
Rank 1
answered on 11 Oct 2012, 05:51 PM
Hi Konstantina,

I modified your project to reflect the architecture in my app and tried to attach it to this reply, but even after changing the extension to .png, I got an error saying the file was invalid.  Instead I've included the xaml below...

<Window x:Class="DockingWPF.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Title="MainWindow" Height="350" Width="525"
        xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation">
    <Grid>
        <telerik:RadDocking HasDocumentHost="True">
            <telerik:RadDocking.DocumentHost>
            <telerik:RadSplitContainer InitialPosition="DockedLeft" Orientation="Vertical">
                    <telerik:RadPaneGroup SelectedIndex="0">
                        <telerik:RadDocumentPane Header="DockedLeft">
                            <Grid>
                                <telerik:RadDocking HasDocumentHost="True"
                                                    AllowUnsafeMode="True">
                                    <telerik:RadSplitContainer InitialPosition="DockedLeft"
                                                               Orientation="Vertical">
                                        <telerik:RadPaneGroup SelectedIndex="0"
                                                              telerik:ProportionalStackPanel.RelativeSize="100, 50">
                                            <telerik:RadPane Header="DockedLeft">
                                            </telerik:RadPane>
                                        </telerik:RadPaneGroup>
                                    </telerik:RadSplitContainer>
                                    <telerik:RadDocking.DocumentHost>
                                        <telerik:RadSplitContainer InitialPosition="DockedLeft"
                                                                   Orientation="Vertical">
                                            <telerik:RadPaneGroup SelectedIndex="0"
                                                                  telerik:ProportionalStackPanel.RelativeSize="100, 50">
                                                <telerik:RadDocumentPane Header="DockedLeft"
                                                                         Visibility="Collapsed"
                                                                         CanUserClose="False">
                                                </telerik:RadDocumentPane>
                                            </telerik:RadPaneGroup>
                                        </telerik:RadSplitContainer>
                                    </telerik:RadDocking.DocumentHost>
                                </telerik:RadDocking>
                            </Grid>
                        </telerik:RadDocumentPane>
                    </telerik:RadPaneGroup>
            </telerik:RadSplitContainer>
          </telerik:RadDocking.DocumentHost>
        </telerik:RadDocking>
    </Grid>
</Window>



If you notice, I am nesting a RadDocking instance inside an outer instance (AllowUnsafeMode=True) and am hiding the doc on the inner RadDocking instance.  This doesn't seem to be the source of the problem, since your project still performs correctly.

I copied your code verbatim back into my app, and included my content, but I still ended up with the same result.  It remains a mystery.

One thing I noticed when I modified your app is that when you unpin the pane that is docked on the left it is displayed in the outter RadDocking left margin.  I would assume it should display in the inner RadDocking instance.  Anyway,  I have abandoned my efforts in favor of a different approach.

Thanks for your time and effort,
Steve

Tags
Docking
Asked by
Steve
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Steve
Top achievements
Rank 1
Share this question
or