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.

TreeNode Validate

Thread ID:

Created:

Updated:

Platform:

Replies:

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

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


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

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.

http://websamples.syncfusion.com/samples/Tools.Web/6.1.0.34/F70989/main.htm


Please let me know if you have any questions.

Regards,
Vinoth



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.

;