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

Hiding/Loading Problem

1 Answer 65 Views
Docking
This is a migrated thread and some comments may be shown as answers.
Gareth
Top achievements
Rank 1
Gareth asked on 02 Nov 2011, 10:20 AM
Hi there.

I have a Docking control set up with three panes. I've set up layout saving and loading to/from Iso storage which is working for the most part. However, I'm hitting an "Object reference not set" error on loading the layout if I save the layout with one of the panes hidden. Here's my XAML:

<telerik:RadDocking HasDocumentHost="False" BorderThickness="1" Padding="5" Margin="12,12,12,12" Background="#FFE9EDF1" Name="radDock" LayoutChangeEnded="radDock_LayoutChangeEnded" Loaded="radDock_Loaded">
 
      <telerik:RadSplitContainer Orientation="Vertical" InitialPosition="DockedRight" Width="300">
          <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="100, 200">
              <telerik:RadPane Header="Activities" CanUserClose="False" telerik:RadDocking.SerializationTag="Activities">
                         
              </telerik:RadPane>
          </telerik:RadPaneGroup>
          <telerik:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="100, 200">
              <telerik:RadPane Header="Notes" CanUserClose="False" telerik:RadDocking.SerializationTag="Notes">
                         
              </telerik:RadPane>
          </telerik:RadPaneGroup>
      </telerik:RadSplitContainer>
 
      <telerik:RadSplitContainer InitialPosition="DockedLeft">
          <telerik:RadPaneGroup>
              <telerik:RadPane Header="Related" CanUserClose="False" telerik:RadDocking.SerializationTag="Related">
                         
              </telerik:RadPane>
          </telerik:RadPaneGroup>
      </telerik:RadSplitContainer>
</telerik:RadDocking>

If i try to hide either the Notes or Actvities pane, I get the error when calling LoadLayout. If I try to hide the large Related pane, I don't get an error, but the pane is not visible at all when the layout is loaded.

I'm currently calling my save method on the RadDocking's LayoutChangeEnded event, so in order to save the hidden pane position (and reproduce the error) I have to hide the pane then drag a split to cause the save to fire.

I have made the source available here, referencing version 2011.2.920.1040 of the Telerik controls.

Thanks!

1 Answer, 1 is accepted

Sort by
0
Ivo
Telerik team
answered on 03 Nov 2011, 09:39 AM
Hello Gareth,

This issue is known and is now fixed with the latest internal build. I tested it with your sample project and it worked as expected.

Hope this helps.

Regards,
Ivo
the Telerik team

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

Tags
Docking
Asked by
Gareth
Top achievements
Rank 1
Answers by
Ivo
Telerik team
Share this question
or