MouseOverSlot always null

2 posts, 0 answers
  1. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 10 Apr 2014 Link to this post

    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
  2. Konstantina
    Admin
    Konstantina avatar
    2332 posts

    Posted 15 Apr 2014 Link to this post

    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.

     
  3. UI for WPF is Visual Studio 2017 Ready
Back to Top