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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

TreeNode Validate

Thread ID:





70989 Jan 10,2008 11:01 PM UTC Jan 10,2008 11:57 PM UTC ASP.NET Web Forms (Classic) 1
Tags: Tools
Asked On January 10, 2008 11:01 PM UTC

Is there any way to validate TreeNode during drag and drop in TreeView control?

Vinoth Kumar K [Syncfusion]
Replied On January 10, 2008 11:57 PM UTC

Hi Kathy,

Thanks for using Syncfusion Products.

Validate TreeNode during drag and drop in TreeView control?

To validate TreeNode during drag and drop, you need to handle the ClientSideOnNodeDrop event. In that event handler, you can check your condition (as per your requirement specify the condition) and if it is satisfied, True will be returned and the node will be dropped else the function will be cancelled.

Here is the attached sample that shows you "How to validate treenode during the DragandDrop in Treeview control?". It checks the condition to drop the child nodes of "MailBox" alone. "Personal Folder" child nodes cannot be dropped into MailBox. Please refer to the sample in the below link which illustrates the above.


Please let me know if you have any questions.



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.

Please sign in to access our forum

or the page will be automatically redirected to sign-in page in 10 seconds.

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