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

Drag and Drop Handle

1 Answer 41 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
John Truong
Top achievements
Rank 1
John Truong asked on 22 Oct 2010, 12:44 AM
Hey guys,

Is it possible to modify a RadTreeView's drag and drop behavior to use a handle?

Just like the RadGrid's GridDragDropColumn:
http://demos.telerik.com/aspnet-ajax/grid/examples/programming/draganddrop/defaultcs.aspx

Thanks!
- J

1 Answer, 1 is accepted

Sort by
0
Nikolay Tsenkov
Telerik team
answered on 27 Oct 2010, 08:13 AM
Hello John Truong,

It is possible. It may require a bit more work to get it working in all situations, but it should be possible.

In order to place a handle, you can template the nodes. Then you should mark the handle somehow, e.g. with a css class.
Then on ClientNodeDragStart you will have to check the element on which the event occurred. For this purpose you can use the dom event in the arguments. If the click happened outside the element with the css class, you can cancel the dragging. Here is a reference to for this event: http://www.telerik.com/help/aspnet-ajax/tree_clientonclientnodedragstart.html

I hope this is helpful for you!


Regards,
Nikolay Tsenkov
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
TreeView
Asked by
John Truong
Top achievements
Rank 1
Answers by
Nikolay Tsenkov
Telerik team
Share this question
or