We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

implement dragdrop in treeviewadv

Thread ID:

Created:

Updated:

Platform:

Replies:

60085 Apr 27,2007 12:55 AM UTC Apr 27,2007 07:07 AM UTC Windows Forms 1
loading
Tags: Tools
Zheng Lin
Asked On April 27, 2007 12:55 AM UTC

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)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
nunit.core
Assembly Version: 2.2.8.0
Win32 Version: 2.2.8.0
CodeBase: file:///D:/Program%20files/NUnit%20V2.2.8/bin/nunit.core.DLL
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
tsReportMgt
Assembly Version: 0.0.0.0
Win32 Version: 9.5.26.0
CodeBase: file:///D:/devel/9_5/Assemblies/tsReportMgt.DLL
----------------------------------------
nunit.framework
Assembly Version: 2.2.8.0
Win32 Version: 2.2.8.0
CodeBase: file:///D:/devel/9_5/Assemblies/nunit.framework.DLL
----------------------------------------
nunit.core.extensions
Assembly Version: 2.2.8.0
Win32 Version: 2.2.8.0
CodeBase: file:///D:/Program%20files/NUnit%20V2.2.8/bin/nunit.core.extensions.DLL
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
Sage.LS1.CompositeControls
Assembly Version: 9.5.0.0
Win32 Version: 9.5.26.0
CodeBase: file:///D:/devel/9_5/Assemblies/Sage.LS1.CompositeControls.DLL
----------------------------------------
System.Data
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/System.Data/2.0.0.0__b77a5c561934e089/System.Data.dll
----------------------------------------
Syncfusion.Tools.Windows
Assembly Version: 4.402.0.51
Win32 Version: 4.402.0.51
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Syncfusion.Tools.Windows/4.402.0.51__3d67ed1f87d44c89/Syncfusion.Tools.Windows.dll
----------------------------------------
Accessibility
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.42 (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll
----------------------------------------
Syncfusion.Shared.Base
Assembly Version: 4.402.0.51
Win32 Version: 4.402.0.51
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Syncfusion.Shared.Base/4.402.0.51__3d67ed1f87d44c89/Syncfusion.Shared.Base.dll
----------------------------------------
Syncfusion.Core
Assembly Version: 4.402.0.51
Win32 Version: 4.402.0.51
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Syncfusion.Core/4.402.0.51__632609b4d040f6b4/Syncfusion.Core.dll
----------------------------------------

************** 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.


Can anyone tell me what I missed here?

Thanks

Poly J [Syncfusion]
Replied On 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.

Best regards,
Poly



CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;