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

Intermediate dialog in radlistbox drag and drop

1 Answer 38 Views
ListBox
This is a migrated thread and some comments may be shown as answers.
Julian
Top achievements
Rank 1
Julian asked on 23 Jun 2015, 04:35 PM

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

1 Answer, 1 is accepted

Sort by
0
Nasko
Telerik team
answered on 25 Jun 2015, 11:33 AM
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
Tags
ListBox
Asked by
Julian
Top achievements
Rank 1
Answers by
Nasko
Telerik team
Share this question
or