Can't get ListBox drag and drop reordering to work

5 posts, 0 answers
  1. Paulo
    Paulo avatar
    5 posts
    Member since:
    Apr 2011

    Posted 30 Aug 2011 Link to this post

    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.
  2. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 31 Aug 2011 Link to this post

    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 >>

  3. UI for WPF is Visual Studio 2017 Ready
  4. Paulo
    Paulo avatar
    5 posts
    Member since:
    Apr 2011

    Posted 31 Aug 2011 Link to this post

    Sorry... I had the wrong character casing. Here's the correct link:
    http://www.pauloqueiroga.com/WpfApplication2.zip

    Thank you,

    PQ.
  5. Paulo
    Paulo avatar
    5 posts
    Member since:
    Apr 2011

    Posted 31 Aug 2011 Link to this post

    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.


  6. Maya
    Admin
    Maya avatar
    4062 posts

    Posted 01 Sep 2011 Link to this post

    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 >>

Back to Top
UI for WPF is Visual Studio 2017 Ready