Last Updated:
12 Jun 2020 16:01
by ADMIN
RadTreeView: Exception is thrown when double click on RadTreeNode and choose a file from the open file dialog
Hi Guys,
I'm crashing an app with TreeViewControl when open dialog is shown and you double click on file in that dialog and file current location is above treeview nodes.
Added example and animated gif so you can also try.
************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Telerik.WinControls.UI.RadTreeViewElement.FindSelectionStartAndEndNodes(RadTreeNode nodeUnderMouse, RadTreeNode& fromNode, RadTreeNode& toNode)
at Telerik.WinControls.UI.RadTreeViewElement.ProcessMouseSelection(Point location)
at Telerik.WinControls.UI.RadTreeViewElement.ProcessMouseMove(MouseEventArgs e)
at Telerik.WinControls.UI.RadTreeView.OnMouseMove(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseMove(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at Telerik.WinControls.RadControl.WndProc(Message& m)
at Telerik.WinControls.UI.RadTreeView.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)
Best regards
Rene