Hiding/Loading Problem

2 posts, 0 answers
  1. Gareth
    Gareth avatar
    4 posts
    Member since:
    Apr 2009

    Posted 02 Nov 2011 Link to this post

    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:RadPaneGroup telerik:ProportionalStackPanel.RelativeSize="100, 200">
                  <telerik:RadPane Header="Notes" CanUserClose="False" telerik:RadDocking.SerializationTag="Notes">
          <telerik:RadSplitContainer InitialPosition="DockedLeft">
                  <telerik:RadPane Header="Related" CanUserClose="False" telerik:RadDocking.SerializationTag="Related">

    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.

  2. Ivo
    Ivo avatar
    390 posts

    Posted 03 Nov 2011 Link to this post

    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.

    the Telerik team

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

Back to Top