Problems with ArrowCue

2 posts, 0 answers
  1. Joakim
    Joakim avatar
    1 posts
    Member since:
    Mar 2012

    Posted 19 Mar 2012 Link to this post

    I'am implementing drag and drop functionality between a RadListbox and a RadTileView, using RadDragAndDropManager.

    I have added a ArrowCue like this:
    private void OnListBoxDragQuery(object sender, DragDropQueryEventArgs e)
               RadListBox listBox = sender as RadListBox;
               if (listBox != null)
                   IList selectedItems = listBox.SelectedItems.Cast<object>().ToList();
                   e.Options.Payload = selectedItems;
               e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();
               e.QueryResult = true;
               e.Handled = true;
     but the arrow cue doesn't show up.

    and another problem the arrow in the dragged item is pointing the wrong way as seen in the attached image.
    any help would be appreciated.

  2. Nick
    Nick avatar
    593 posts

    Posted 21 Mar 2012 Link to this post

    Hello Joakim,

    The reason the arrow cue is not shown, is that we made some changes in the RadDragAndDropManager, that we introduced in Q2 2011. Those changes were necessary due to the introduction of our new Drag & Drop mechanism, the DragDropManager
    To achieve the desired behavior you have to set the RadDragAndDropManager's execution mode to "Legacy". You can see how this can be achieved here.  

    As for the arrow in the Drag Cue, since you can set the DragCue to any visual element, you can do whatever you want with it, and manipulate it in the DragInfo, and DropQuery events. 

    Hope this helps! 

    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Back to Top