Issue loading a layout with Pinned Panes

2 posts, 0 answers
  1. Ryan
    Ryan avatar
    18 posts
    Member since:
    Oct 2010

    Posted 09 Nov 2011 Link to this post


    I'm having a problem loading a saved layout with a pinned pane. If I save a layout with a pinned pane, move something around, and then load that layout back in, it loads up correctly. However, if I save a layout with a pinned pane, then close and restart the application and load the layout on startup, I get the following null reference exception:

    System.NullReferenceException: Object reference not set to an instance of an object.
       at Telerik.Windows.Controls.RadPane.OnIsPinnedChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at Telerik.Windows.PropertyMetadata.PropertyChangeHook.OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
       at System.Windows.DependencyObject.RaisePropertyChangeNotifications(DependencyProperty dp, Object oldValue, Object newValue)
       at System.Windows.DependencyObject.UpdateEffectiveValue(DependencyProperty property, EffectiveValueEntry oldEntry, EffectiveValueEntry& newEntry, ValueOperation operation)
       at System.Windows.DependencyObject.SetValueInternal(DependencyProperty dp, Object value, Boolean allowReadOnlySet)
       at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)
       at Telerik.Windows.Controls.Docking.DockingLayoutFactory.ReadProperty(Dictionary`2 attributes, DependencyObject d, DependencyProperty property, String propertyName, Converter`2 parser)
       at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadPane(XmlReader reader)
       at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadPaneGroup(XmlReader reader)
       at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadSplitItem(XmlReader reader)
       at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadSplitContainer(XmlReader reader)
       at Telerik.Windows.Controls.Docking.DockingLayoutFactory.LoadDocking(XmlReader reader)
       at Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source, Boolean raiseEventsIfNoSerializationTag)
       at Telerik.Windows.Controls.RadDocking.LoadLayout(Stream source)
       at MainPage.LoadLayout()

    I've tried loading the layout in the user control's constructor immediately after the InitializeComponent() method call, and in the user control's Loaded event handler. The goal is to be able to load the user's layout on startup. Is this an issue in your controls, or am I doing something incorrectly?
  2. Ivo
    Ivo avatar
    390 posts

    Posted 11 Nov 2011 Link to this post

    Hi Ryan,

    We fixed similar issue into one of the latest internal builds. Could you please test it again with the latest internal build and post the result here?

    Kind regards,
    the Telerik team

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

  3. DevCraft R3 2016 release webinar banner
Back to Top