TreeNode Parent Changed

Suppose I have a tree which allows the user to drag nodes from on parent to another. I am looking for an event I can catch or some way to tell in code when this has happened. I would''ve thought this would be easy but pehaps I''m just overlooking something - is there an event that fires for this?

3 Replies

DT Deepa TS Syncfusion Team December 13, 2005 02:58 PM UTC

Hi Jeff, I am looking into this and will get back to you as soon as possible. We appreciate your feedback and thanks for your interest in Syncfusion products. Thanks for your patience. Regards, Deepa.T.S


DT Deepa TS Syncfusion Team December 14, 2005 12:32 PM UTC

Hi Jeff, Sorry for the delay in getting back to you. In a treeViewAdv ,during the dragdrop operation of nodes from one Parent node to another Parent node the ParentChange event has to trigger,but it fails to work so, I have logged a bug report regarding this issue. http://www.syncfusion.com/support/issues/tools/Default.aspx?ToDo=view&questId=1227 ParentChange Event is not triggered in treeviewAdv during drag and drop. Regarding this issue you could track the status of this bug fix in the above link. Thanks for your patience and interest in Syncfusion products. Best regards, Deepa.T.S


DT Deepa TS Syncfusion Team March 7, 2006 01:08 PM UTC

Hi Jeff, Sorry for the inconvenience caused. After consulting with the developer,it is confirmed that there is no specific event for this behavior in treeViewAdv control.It can be done by checking in TreeViewAdv DragDrop event.That is by comparing the Source node parent with the destination nodes parent node in DragDrop event to ensure the parent change while drag drop. I have attached the modified sample.It tells you clearly that ,while dragdrop if previous Source Node''s parent is not same as the Destination Node''s parent,then the parentchange is shown in MessageBox. Please take a look at it and let me know if this helps you. Thanks for your continued interest in Syncfusion Products. Regards, Deepa.T.S

CS12.zip

Loader.
Up arrow icon