I have two instances where I drag appointment onto the ScheduleView. Once dragging from a listview to the scheduleview, and once when you drag within the scheduleview. In both cases I would like to complete some kind of action after the drop is completed. I have added the appropriate drop info handler but it never gets hit. I do have a custom drag behavior that handles the drop action itself. What do I have to do to make something happen after the drop is completed. OnDropInfo never fires...
//Drag and Drop handlers to the result listview and ScheduleView
RadDragAndDropManager.AddDragQueryHandler(resultListView, OnDragQuery);
RadDragAndDropManager.SetAllowDrop(taskBoardScheduleView,
true
);
RadDragAndDropManager.AddDropInfoHandler(taskBoardScheduleView, OnDropInfo);
taskBoardScheduleView.DragDropBehavior =
new
TaskBoardDragDropBehavior();
protected
virtual
void
OnDropInfo(
object
sender, DragDropEventArgs e)
{
if
(e.Options.Status == DragStatus.DropComplete)
{
RefreshScheduleView();
//DateSpan dateSpan = new DateSpan(taskBoardScheduleView.VisibleRange.Start, taskBoardScheduleView.VisibleRange.End);
//viewModel.GetTaskAppointments(dateSpan);
}
}