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

MouseOverSlot always null

1 Answer 13 Views
ScheduleView
This is a migrated thread and some comments may be shown as answers.
Christie Admin
Top achievements
Rank 1
Christie Admin asked on 10 Apr 2014, 08:35 PM
Hi,

with version 2013.3.1204.40 of Telerik. I implemented a CustomDragDropBehavior and in the override method CanDrop, if I do the following :

Slot mouseOverSlot = (state.ServiceProvider.GetService<IDialogProvider>() as RadScheduleView).MouseOverSlot;

mouseOverSlot is always null

Thank's
Alain

1 Answer, 1 is accepted

Sort by
0
Konstantina
Telerik team
answered on 15 Apr 2014, 09:09 AM
Hi Alain,

The MouseOverSlot property of the ScheduleView is used and set in the selection behavior of the control, not for the DragDrop functionality, that is why it is always null. Furthermore, when dragging, the mouse is captured by the dragged object, and it receives all mouse events. The property you need I guess is the DestinationSlots, which can be retrieved from the DragDropState in all DragDrop events.

Hope this helps.

Regards,
Konstantina
Telerik
 

Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

 
Tags
ScheduleView
Asked by
Christie Admin
Top achievements
Rank 1
Answers by
Konstantina
Telerik team
Share this question
or