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

Simple Doc layout blocked by DocumentHost

3 Answers 59 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Steve Chadbourne
Top achievements
Rank 1
Steve Chadbourne asked on 17 Dec 2009, 08:26 PM
I am trying to achieve a very simple 2 pane docking layout. I want both panes to fill the space available with a splitter between them. If I hide one pane I want the other to fill the remaining space. Here is my markup:

    <Grid> 
         
        <telerik:RadDocking Name="radDocking1" > 
             
            <telerik:RadSplitContainer Name="LeftContainer" InitialPosition="DockedLeft" > 
                 
                <telerik:RadPaneGroup> 
                    <telerik:RadPane Header="Task List"
                    </telerik:RadPane> 
                </telerik:RadPaneGroup> 
                 
            </telerik:RadSplitContainer> 
 
            <telerik:RadSplitContainer Name="RightContainer" InitialPosition="DockedRight"
 
                <telerik:RadPaneGroup> 
                    <telerik:RadPane Header="Map"
                    </telerik:RadPane> 
                </telerik:RadPaneGroup> 
            </telerik:RadSplitContainer> 
 
        </telerik:RadDocking> 
    </Grid> 
 


What seems to be blocking this is the DocumentHost. Even when I remove the document host by following the posted instructions - using blend to grab the style sheet and setting visibility to collapsed I still can't get my 2 panes to fill the space.

Any ideas anyone?

Cheers

Steve

3 Answers, 1 is accepted

Sort by
0
Miroslav Nedyalkov
Telerik team
answered on 18 Dec 2009, 02:06 PM
Hello Steve,

 We've added feature that allows just the scenario you need. Please, refer to the following XAML:

<telerikDocking:RadDocking Name="radDocking1" HasDocumentHost="False">
 
    <telerikDocking:RadSplitContainer>
 
        <telerikDocking:RadPaneGroup>
            <telerikDocking:RadPane Header="Task List">
            </telerikDocking:RadPane>
        </telerikDocking:RadPaneGroup>
 
        <telerikDocking:RadPaneGroup>
            <telerikDocking:RadPane Header="Map">
            </telerikDocking:RadPane>
        </telerikDocking:RadPaneGroup>
    </telerikDocking:RadSplitContainer>
 
</telerikDocking:RadDocking>

Kind regards,
Miroslav Nedyalkov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Steve Chadbourne
Top achievements
Rank 1
answered on 19 Dec 2009, 03:52 AM
Looking much better thanks. I was hoping there was something like HasDocumentHost. Might be worth updating your online docs to reference this rather than recommending the style workaround.

Still have a problem though. The first pane hides successfully but when I try and hide the second I get an exception:

-        InnerException    {"Sequence contains no matching element"}    System.Exception {System.InvalidOperationException}

     [External Code]    
     Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadPane.OnPinChange(Telerik.Windows.Controls.Docking.PinChangeEventArgs args = {Telerik.Windows.Controls.Docking.PinChangeEventArgs}) Line 1420    C#
     Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadPane.ChangePin(bool isPinned = false) Line 1488 + 0x34 bytes    C#
     Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadPane.OnIsPinnedChanged(System.Windows.DependencyObject d = {Telerik.Windows.Controls.RadPane Header:Map Content:}, System.Windows.DependencyPropertyChangedEventArgs e = {System.Windows.DependencyPropertyChangedEventArgs}) Line 1180 + 0x21 bytes    C#
     [External Code]    
     Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadPane.IsPinned.set(bool value = false) Line 373    C#
     Telerik.Windows.Controls.Docking.dll!Telerik.Windows.Controls.RadPaneGroup.OnPanePinClick(object sender = {Telerik.Windows.Controls.RadPaneGroup Items.Count:0}, System.Windows.Input.ExecutedRoutedEventArgs e = {System.Windows.Input.ExecutedRoutedEventArgs}) Line 1187    C#
     [External Code]    
     Telerik.Windows.Controls.dll!Telerik.Windows.Controls.RadButton.OnClick() Line 307    C#
     [External Code]    


Version 2009.3.1208 (trial) / VS 2008 / Win 7 Ultimate.

Cheers

Steve
0
Steve Chadbourne
Top achievements
Rank 1
answered on 21 Dec 2009, 07:37 PM
It has been reported by Telerik that this is a known issue and they wil be working on it for a future release most likely SP2 planned for mid January.

Chers

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