This question is locked. New answers and comments are not allowed.
I'm using ScheduleView Drag and Drop demo: http://demos.telerik.com/silverlight/#ScheduleView/DragDrop
How can I show message box to prompt the user before committing the drag and drop from the list box operation? This thread recommends to override CanDrop method. I tried the following code:
but the message box appears as soon as the user hovers mouse cursor over ScheduleView area while dragging, while I need it to appear only on drop.
Overriding Drop method and returning false prevents appointment from being created, but doesn't return it to the ListBox.
How can I show message box to prompt the user before committing the drag and drop from the list box operation? This thread recommends to override CanDrop method. I tried the following code:
public
override
bool
CanDrop(DragDropState state)
{
bool
canDrop =
false
;
RadWindow.Confirm(
"Drop the item here?"
, (window, closedArgs) =>
{
if
(closedArgs.DialogResult ==
true
)
{
canDrop =
true
;
}
});
return
canDrop;
}
but the message box appears as soon as the user hovers mouse cursor over ScheduleView area while dragging, while I need it to appear only on drop.
Overriding Drop method and returning false prevents appointment from being created, but doesn't return it to the ListBox.