Intermediate dialog in radlistbox drag and drop

2 posts, 0 answers
  1. Julian
    Julian avatar
    3 posts
    Member since:
    May 2015

    Posted 23 Jun 2015 Link to this post

    Hi all,

     I am trying to implement a feature whereby the user will drag an item from one list box and when they dump it into the other, before it is dumped, they will get a dialog which will ask them to set one of the properties of the item they wish to transfer. I am currently trying to abuse a dataconverter but it doesn't seem to be working.

     Thanks,

     Julian

  2. Nasko
    Admin
    Nasko avatar
    587 posts

    Posted 25 Jun 2015 Link to this post

    Hello Julian,

    Thank you for contacting us.

    In order to achieve the desired functionality you need to create custom ListBoxDragDropBehavior - you need to override the default implementations of the Drop and DragDropCompleted methods. Inside them using the DragDropState you could get the current dragged/dropped item and change the properties of the item as needed. Please, check the following sample project from our SDK Repository that demonstrates how to override the listed above methods and get the dragged/dropped item:
    https://github.com/telerik/xaml-sdk/tree/master/ListBox/CustomListBoxDragDropBehavior

    Please, do not hesitate to contact us if you need our further assistance with the implementation of the described above approach.

    We hope this will help you.

    Regards,
    Nasko
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top