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

Drag&drop from list to tree and within tree

1 Answer 60 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Frank
Top achievements
Rank 1
Frank asked on 08 Jan 2009, 08:44 PM

I would like to use RAD controls for silverlight in our workflow designer. Users need to (1) drag the source activities from the draggable list to the sequential activity tree, (2) reorder them within the tree. 

The default drag&drop within the tree is OK, and it has 3 visual objects: (1) DragCue showing both source icon and label; (2) horizontal line; (3) Label describing the target location (before, in or after the item).

The default drag&drap between list and tree has only 2 visual objects: (1) DragCue showing source icon; (2) ArrowCue.  It should have consistent Cues and behavior as that of drag&drop within the tree.

I am thinking the following steps:
(1) once the mouse reach the tree, create a temp tree item,
(2) automatically complete the first drag&drop between the two controls, and start the drag&drop within the tree.
Do you have even simpler approach to adding horizontal line and description label?




1 Answer, 1 is accepted

Sort by
0
Miroslav
Telerik team
answered on 14 Jan 2009, 11:47 AM
Hi Frank,

First, sorry for the delayed reply.

I realize that the drag/drop is acting inconsistently, because the TreeView shows different drag/drop cues.

There are is a way in which you can give feedback: 

The in/before/after cue can appear as part of the drag cue so it will say "Drop Item A after Item B". This approach will involve no changes to thee TreeView.

Currently  the DragDrop cues are part of the TreeView (not TreeViewItem) and cannot be shown/hidden easily.

We will consider making the TreeView cues publicly accessible.

Unfortunately I cannot think of a better solution right now.

Best wishes,
Miroslav
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
DragAndDrop
Asked by
Frank
Top achievements
Rank 1
Answers by
Miroslav
Telerik team
Share this question
or