This is a migrated thread and some comments may be shown as answers.

Source and Destination nodes with same parent event Handler

1 Answer 39 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Ben Turpin
Top achievements
Rank 1
Ben Turpin asked on 22 Jul 2008, 02:20 PM
Hi!

I want to show an error message when a user tries to move the node to its own childs.

For example:

Node A
 -node a.1
 -node a.2

Move node A to node a.1. I want to show an error message and cancel the operation with set_cancel. Im not sure which client event to subscribe. I tried with the OnClientNodeDropping and OnClientNodeDropped but it did not trigger any of these events.

Thanks

1 Answer, 1 is accepted

Sort by
0
Veselin Vasilev
Telerik team
answered on 23 Jul 2008, 11:34 AM
Hi Ben Turpin,

By design, no events are fired when you drop a parent node onto one of its child nodes. This operation is not allowed and that is why no events fire.

All the best,
Veskoni
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
TreeView
Asked by
Ben Turpin
Top achievements
Rank 1
Answers by
Veselin Vasilev
Telerik team
Share this question
or