RadPane on the top of RadDocking

2 posts, 0 answers
  1. deepak
    deepak avatar
    25 posts
    Member since:
    Jan 2011

    Posted 11 Jun 2012 Link to this post

    Hi all
    in the current q1 sp1, RadPanes are inside the docking if docking has a smaller width. this was not a problem in the previous q1 release. please use the following code to generate the error.  I am also attaching the screen shot.
    <Window x:Class="RadControlsWpfApp3.MainWindow"
                    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                    xmlns:telerik="http://schemas.telerik.com/2008/xaml/presentation"
                    Title="MainWindow" Height="350" Width="525">
            <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition Width="auto"/>
                <ColumnDefinition/>
            </Grid.ColumnDefinitions>
                <telerik:RadDocking AllowUnsafeMode="True" >
                <telerik:RadSplitContainer Orientation="Vertical">
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="1" IsPinned="False"></telerik:RadPane>
                    </telerik:RadPaneGroup>
                    <telerik:RadPaneGroup>
                        <telerik:RadPane Header="2" IsPinned="False"></telerik:RadPane>
                    </telerik:RadPaneGroup>
                </telerik:RadSplitContainer>
            </telerik:RadDocking>
        </Grid>
    </Window>

  2. Georgi
    Admin
    Georgi avatar
    349 posts

    Posted 13 Jun 2012 Link to this post

    Hello deepak,

    Although it looks like an issue, actually the behavior is expected. We have fixed an issue in Q1 SP and since then the unpined Panes can not go beyond RadDocking layout, which should be the correct behavior. So in this case the width of the RadDocking is constrained by the width of the Grid's column and therefore the unpined Pane is smaller. 
    I am not sure about the layout of your application, but it seems like you can use DocumentHost and achieve the same thing. In the attached project you can see how to implement that. What I have basically done is:
    •  Set Visibility="Collapsed" CanUserClose="False" to the RadPane into the DocumentHost.
    •  Delete the 3 borders into the PaneGroup_DocumentFrameTemplate - BorderLayer1, BorderLayer2, BorderLayer3
    Hope this will help.

    All the best,
    Georgi
    the Telerik team

    Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

  3. UI for WPF is Visual Studio 2017 Ready
Back to Top