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

Problems with ArrowCue

1 Answer 77 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Joakim
Top achievements
Rank 1
Joakim asked on 19 Mar 2012, 09:38 PM
Hi.
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.


1 Answer, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 21 Mar 2012, 05:56 PM
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! 

Greetings,
Nik
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
Tags
DragAndDrop
Asked by
Joakim
Top achievements
Rank 1
Answers by
Nick
Telerik team
Share this question
or