The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi, I am using syncfusion version 4.4 TreeViewAdv control on window form in a C# application. I followed the sample code included in the essential suites getstarted guide to implement the dragdrop effect. However, I come across out of bound exception right after I click on some node on the tree and start to drag it. The exception goes as follows:
System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection. Parameter name: index at System.Collections.ArrayList.get_Item(Int32 index) at Syncfusion.Collections.ArrayListExt.get_Item(Int32 index) at Syncfusion.Windows.Forms.Tools.TreeNodeAdvCollection.get_Item(Int32 index) at Syncfusion.Windows.Forms.Tools.TreeViewAdv.GetSelectedNodesRectangle(TreeNodeAdv[] tnas) at Syncfusion.Windows.Forms.Tools.TreeViewAdv.ExtractSelectedBoundsFromBmp(Bitmap bmp, TreeNodeAdv[] tnas) at Syncfusion.Windows.Forms.Tools.TreeViewAdv.GetDraggedNodesBitmap() at Syncfusion.Windows.Forms.Tools.TreeViewAdv.set_DragCueOn(Boolean value) at Syncfusion.Windows.Forms.Tools.TreeViewAdv.OnGiveFeedback(GiveFeedbackEventArgs args) at Syncfusion.Windows.Forms.Tools.TreeViewAdv.OnMouseMove(MouseEventArgs e) at System.Windows.Forms.Control.WmMouseMove(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg) at Syncfusion.Windows.Forms.Tools.TreeViewAdv.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)
************** JIT Debugging ************** To enable just-in-time (JIT) debugging, the .config file for this application or computer (machine.config) must have the jitDebugging value set in the system.windows.forms section. The application must also be compiled with debugging enabled.
For example:
When JIT debugging is enabled, any unhandled exception will be sent to the JIT debugger registered on the computer rather than be handled by this dialog box.
PJPoly J Syncfusion Team April 27, 2007 07:07 AM UTC
Hi Zheng,
Thanks for your interest in Syncfusion products.
This is a known issue in 4.4 version. We have fixed this issue internally. Could you please create a Direct-trac incident with subject line "TreeviewAdv - Dragging Child node throws Exception - F60085". We will send you the bug fix details through the Direct-trac System.