- Home
- Forum
- ASP.NET Web Forms (Classic)
- drag drop TreeView
drag drop TreeView
Hi,
I am working with the drag drop functinality fo the TreeView.
After dropping the node I want to check if the node I am dropping is right/wrong. If it is right not then no problem, but if it is wrong node then I want to cancel the process means I wont allow to drop the node. Is there any way I can handle this functionality?
Thanks,
Sandeep
SIGN IN To post a reply.
3 Replies
AD
Administrator
Syncfusion Team
October 11, 2006 11:59 AM UTC
Hi Sandeep,
I have attached a sample in which i have checked the condition to drop the child nodes of "MailBox" alone. "Personal Folder" child nodes cannot be dropped into MailBox.
In the ClientSideOnNodeDrop event, 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.
http://www.syncfusion.com/Support/user/uploads/DragAndDrop.zip
Let me know if you have any further queries.
Regards,
Valli
I have attached a sample in which i have checked the condition to drop the child nodes of "MailBox" alone. "Personal Folder" child nodes cannot be dropped into MailBox.
In the ClientSideOnNodeDrop event, 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.
http://www.syncfusion.com/Support/user/uploads/DragAndDrop.zip
Let me know if you have any further queries.
Regards,
Valli
KG
Kathy Gray
January 11, 2008 10:26 PM UTC
Is there a way to do this on the server side?
Thanks, Kathy
>Hi Sandeep,
I have attached a sample in which i have checked the condition to drop the child nodes of "MailBox" alone. "Personal Folder" child nodes cannot be dropped into MailBox.
In the ClientSideOnNodeDrop event, 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.
http://www.syncfusion.com/Support/user/uploads/DragAndDrop.zip
Let me know if you have any further queries.
Regards,
Valli
Thanks, Kathy
>Hi Sandeep,
I have attached a sample in which i have checked the condition to drop the child nodes of "MailBox" alone. "Personal Folder" child nodes cannot be dropped into MailBox.
In the ClientSideOnNodeDrop event, 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.
http://www.syncfusion.com/Support/user/uploads/DragAndDrop.zip
Let me know if you have any further queries.
Regards,
Valli
VK
Vishnu Kumar
Syncfusion Team
January 17, 2008 11:44 AM UTC
Hi Kathy,
Thank you for your interest in Syncfusion products.
Server side condition checking during node drop in TreeView.
I am able to see the issue of that you have mentioned here. But we do not have any server side event to check the condition during node drop and we have only TreeView_NodeDropped event which will be fired after the node is dropped in to the treeview. So I regret to let you know that it is not possible to check the condition in server side during the node drop. Sorry for the inconvenience.
Regards,
Vishnu
Thank you for your interest in Syncfusion products.
Server side condition checking during node drop in TreeView.
I am able to see the issue of that you have mentioned here. But we do not have any server side event to check the condition during node drop and we have only TreeView_NodeDropped event which will be fired after the node is dropped in to the treeview. So I regret to let you know that it is not possible to check the condition in server side during the node drop. Sorry for the inconvenience.
Regards,
Vishnu
SIGN IN To post a reply.
- 3 Replies
- 4 Participants
-
SA Sandeep
- Oct 10, 2006 11:12 AM UTC
- Jan 17, 2008 11:44 AM UTC