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:
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!
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!