DockingManager NullReferenceException

2 posts, 0 answers
  1. Srinivasa
    Srinivasa avatar
    1 posts
    Member since:
    Dec 2010

    Posted 29 Dec 2010 Link to this post


    On the launch of the splitter window if the user tries to resize  the sub window by dragging/moving the splitter, A NullReferenceException is thrown.  The following is the stack message.

       System.NullReferenceException: Object reference not set to an instance of an object.
       at Telerik.WinControls.Docking.DockSite.CalcSplitterMargin(Splitter& splitter)
       at Telerik.WinControls.Docking.DockSite.OnMouseDown(MouseEventArgs e)
       at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
       at System.Windows.Forms.Control.WndProc(Message& m)
       at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
       at System.Windows.Forms.ContainerControl.WndProc(Message& m)
       at Telerik.WinControls.Docking.DockSite.WndProc(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
       at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
       at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    Note: sub windows are the DockPanels which are added to the DockingManager using SetDock.

    Thanks for any help,

  2. Julian Benkov
    Julian Benkov avatar
    1135 posts

    Posted 03 Jan 2011 Link to this post

    Hi Srinivasa,

    The DockingManager control is now obsolete and it is not actively developed and supported. It is replaced with the RadDock control. It has a better API, can dock directly controls and Forms objects, there are many improvements in the save/load layout functionality and it supports our new theming mechanism. More information regarding the RadDock control you can found in our online documentation.

    I hope this helps. Should you have further questions, do not hesitate to ask.

    All the best,
    Julian Benkov
    the Telerik team
    Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
Back to Top