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

Drag/Drop - Need to have "Drop in" behavior always

1 Answer 69 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
Balaram Barange
Top achievements
Rank 1
Balaram Barange asked on 28 Sep 2011, 08:34 AM
Hi,

We have implemented drag-drop feature for the trees in our application - when we are dropping to destination tree node it shows "Drop after <destination-node>", "Drop before <destination-node>" and "Drop in <destination-node>" message - but we need that it always behaves like Drop in meaning if user is dropping in any node in between child-nodes of any parent node - the message should not read "Drop before <destination-node>" or "Drop after <destination-node>" instead it should read "Drop in <parent-node>"

For example - if we have a parent node say P and there are child node say C1,C2,C3,C4 and now if we are dropping any node between C2 and C3 - it will say either "Drop before C3" or "Drop after C2" - but instead we want to show "Drop in P". We tried using TextDropAfter and TextDropBefore property - but this can only set the message to "Drop in" and thus "Drop before <destination-node>" and "Drop after <destination-node>" will read "Drop in <destination-node>" but we intend to show "Drop in <parent-node>".

Please let know how to achieve this.

Thanks,
Bala

1 Answer, 1 is accepted

Sort by
0
Petar Mladenov
Telerik team
answered on 03 Oct 2011, 09:03 AM
Hi Balaram Barange,

 This requirement cannot be implemented out of the box. You will have to create your own custom DragCue and change it dynamically using the RadDragAndDropManager events. Please let us know if you need more info on this.

Regards,
Petar Mladenov
the Telerik team

Explore the entire Telerik portfolio by downloading the Ultimate Collection trial package. Get it now >>

Tags
TreeView
Asked by
Balaram Barange
Top achievements
Rank 1
Answers by
Petar Mladenov
Telerik team
Share this question
or