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

Drag&drop (some restrictions) .. Treeview

1 Answer 94 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Jin Hyeok Kim
Top achievements
Rank 1
Jin Hyeok Kim asked on 11 Jun 2009, 03:05 AM

Hi.

I am using the TreeView control.
however, there are some restrictions I need enforced.
Basically I want the user to be able to re-arrange the sub items in a tree node but not be able to drop a node outside of its parent.
How can I do this?

Lower part saw the same contents question.
Will be a plan which will upgrade. Now is the use possible?

Reply will wait.
Thanks...

1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 11 Jun 2009, 11:34 AM
Hello Jin,

The DragDrop for the Q3 release will be improved and will allow complete customization.

Currently, you can use the PreviewDragEnded event, which gives you the drop destination and the relative position (i.e. are you dropping before, after or in the item). You can cancel the event if you are not happy with the TargetDropItem or the position of the drop.

Unfortunately there was a bug in the 5.26 release of the controls and the TargetDropItem is sometimes returned as null. Please download the Latest internal build if you are experiencing issues with this.

Hopefully this will work for you,

Best wishes,
Miroslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
TreeView
Asked by
Jin Hyeok Kim
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or