Drag&drop from list to tree and within tree

2 posts, 0 answers
  1. Frank
    Frank avatar
    2 posts
    Member since:
    Jun 2008

    Posted 08 Jan 2009 Link to this post

    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?




  2. Miroslav
    Admin
    Miroslav avatar
    922 posts

    Posted 14 Jan 2009 Link to this post

    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.
  3. DevCraft banner
Back to Top