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

Can't get ListBox drag and drop reordering to work

4 Answers 77 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Paulo
Top achievements
Rank 1
Paulo asked on 30 Aug 2011, 09:39 PM
Hello,

I've trying to follow all the recommendations, samples, tutorials and how-tos I could find about this, and now I'm kind of lost because I can't make anything work... So I put together a sample application (http://pauloqueiroga.com/wpfapplication2.zip) to illustrate my problem.

All I need to drag and drop with a ListBox to redefine the order of the elements.

I started following the steps in this article (http://www.telerik.com/help/wpf/raddraganddrop-within-listbox.html), then I also applied the recommendations of this other one (http://www.telerik.com/help/wpf/raddraganddrop-child-window-non-telerik-popups.html) because my original app had the listbox in a popup window, and I tried a few different tweaks, like the ones recommended here (http://www.telerik.com/community/forums/wpf/draganddrop/drag-drop-mvvm.aspx) but I'm only getting lost.

Do you think you can help me?

Thank you,

PQ.

4 Answers, 1 is accepted

Sort by
0
Maya
Telerik team
answered on 31 Aug 2011, 02:37 PM
Hello Paulo,

Will it be possible to reattach the project as we were not able to download it and the errors says the requested url cannot be found ? 


Greetings,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Paulo
Top achievements
Rank 1
answered on 31 Aug 2011, 04:54 PM
Sorry... I had the wrong character casing. Here's the correct link:
http://www.pauloqueiroga.com/WpfApplication2.zip

Thank you,

PQ.
0
Paulo
Top achievements
Rank 1
answered on 31 Aug 2011, 05:20 PM
Hey,

This morning I found that if I add this line of code to the constructor, everything seems to work...
RadDragAndDropManager.ExecutionMode = DragExecutionMode.Legacy;

Thanks,
PQ.


0
Maya
Telerik team
answered on 01 Sep 2011, 06:57 AM
Hello Paulo,

Indeed, setting the execution mode to Legacy could resolve a couple of issues. This is necessary as we have introduced a new DragDropManager and when working with RadDragAndDropManager you will probably have to set this property. Thus saying explicitly that you will use RadDragAndDropManager.
Still, I happy to see that you managed to solve your issue. Let me know in case you need any further assistance.

Regards,
Maya
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
DragAndDrop
Asked by
Paulo
Top achievements
Rank 1
Answers by
Maya
Telerik team
Paulo
Top achievements
Rank 1
Share this question
or