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.

Select problem with TreeViewAdv

Thread ID:

Created:

Updated:

Platform:

Replies:

18522 Sep 1,2004 02:27 PM Sep 4,2004 09:47 PM Windows Forms 6
loading
Tags: Tools
Hyun
Asked On September 1, 2004 02:27 PM

We populate TreeViewAdv with data that comes from a database. Anytime we the data that is "dirty" we clear out the tree and repopulate it with fresh data. Herein lies the problem. Before we clear out the tree, we store which nodes are selected(we allow multi select on the same level). After repopulating the tree, we traverse the tree and then use the Add() method for the SelectedNodes property to selected the nodes that were selected prior to re-population. As soon as you click on the selected node, we get a null reference exception in: Syncfusion.Windows.Forms.Tools.TreeNodeAdv.GetIsMirrored() It seems the tree view is confused as to which node is really selected. This was not a problem in 2.0.5.1. We found a workaround but seems like a hack. As we are reselecting the nodes, the first node has to be set using the SelectedNode property. The following selected nodes are adding using the Add() method for the SelectedNodes property. Any reason this is happening? I know there have been significant fixes and enhancements to this control.

Administrator [Syncfusion]
Replied On September 1, 2004 04:15 PM

Hi Hyun, Thanks for your feedback on this issue. I have created a Direct-Trac incident 13333 in this regard. Please refer to my response there. In future, please address all your issues through Direct-Trac as far as possible. We appreciate your cooperation, and thanks for choosing Syncfusion products. Regards, Guru Patwal Syncfusion, Inc.

Raymond Gunawan
Replied On September 2, 2004 11:55 AM

I''m having the same problem, how can I see the Direc-trac incident? Thanks. Raymond. >Hi Hyun, > >Thanks for your feedback on this issue. I have created a Direct-Trac incident 13333 in this regard. Please refer to my response there. In future, please address all your issues through Direct-Trac as far as possible. We appreciate your cooperation, and thanks for choosing Syncfusion products. > >Regards, >Guru Patwal >Syncfusion, Inc.

Jon
Replied On September 2, 2004 01:36 PM

I am having this problem as well... this is the stack trace: StackTrace " at Syncfusion.Windows.Forms.Tools.TreeNodeAdv.GetIsMirrored()\r\n at Syncfusion.Windows.Forms.Tools.TreeNodeAdv.get_TextBounds()\r\n at Syncfusion.Windows.Forms.Tools.TreeViewAdv.OnMouseDown(MouseEventArgs e)\r\n at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)\r\n at System.Windows.Forms.Control.WndProc(Message& m)\r\n at Syncfusion.Windows.Forms.ScrollControl.WmMouseDown(Message& msg)\r\n at Syncfusion.Windows.Forms.ScrollControl.WndProc(Message& msg)\r\n at Syncfusion.Windows.Forms.Tools.TreeViewAdv.WndProc(Message& m)\r\n at System.Windows.Forms.ControlNativeWindow.OnMessage(Message& m)\r\n at System.Windows.Forms.ControlNativeWindow.WndProc(Message& m)\r\n at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)\r\n at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)\r\n at System.Windows.Forms.ComponentManager.System.Windows.Forms.UnsafeNativeMethods+IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)\r\n at System.Windows.Forms.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)\r\n at System.Windows.Forms.Application.Run(Form mainForm)\r\n at InteractiveSoftworks.InteractiveEnterpriseExplorer.Framework.EntryPoint.Main() in c:\\development\\vs.net 2003\\projects\\iee\\iee.framework\\entrypoint.cs:line 18" string

Administrator [Syncfusion]
Replied On September 2, 2004 03:04 PM

Hi Raymond and Jon, We have made several related fixes in the TreeViewAdv control recently and believe that those fixes should take care of this problem. Please create an incident in Direct-Trac in this regard and I will send you the download instructions for a private build containing these fixes. Note that private builds are untested builds and should be used for testing fixes only. Test your application against this build and let me know how it goes. Also, download instructions for private builds will not be posted in public forums, and will be sent to users on request through a Direct-Trac incident only. We appreciate your cooperation and understanding on this issue. Regards, Guru Patwal Syncfusion, Inc.

Graham McKechnie
Replied On September 3, 2004 04:27 PM

Guru, I''m also having the same problem. But I can''t view the Direct Trac incident 13333 to see the fix. Since its a holiday over there, can any of you other guys describe the fix. Graham >Hi Raymond and Jon, > >We have made several related fixes in the TreeViewAdv control recently and believe that those fixes should take care of this problem. Please create an incident in Direct-Trac in this regard and I will send you the download instructions for a private build containing these fixes. Note that private builds are untested builds and should be used for testing fixes only. Test your application against this build and let me know how it goes. Also, download instructions for private builds will not be posted in public forums, and will be sent to users on request through a Direct-Trac incident only. We appreciate your cooperation and understanding on this issue. > >Regards, >Guru Patwal >Syncfusion, Inc.

Administrator [Syncfusion]
Replied On September 4, 2004 09:47 PM

Hi Graham, Could you please create a Direct-Trac incident in this regard ? I will then update you with more information on this fix. We appreciate your cooperation. Regards, Guru Patwal Syncfusion, Inc.

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.

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.

;