Drag Completed schenario

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

    Posted 29 Jun 2014 Link to this post

    Hi,

    I have my own DragDropBehavior and I would like to know in the DragCompleted over which special slots tghe appointment as been released.

    Thank's
    Alain
  2. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 01 Jul 2014 Link to this post

    Hello Alain,

    The only solution we can suggest is the one explained in this post. Did you manage to test it and if so could you please share what issues you have faced?

    I'm looking forward to hearing from you.

    Regards,
    Kalin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. Christie Admin
    Christie Admin avatar
    239 posts
    Member since:
    Aug 2013

    Posted 01 Jul 2014 Link to this post

    Hi Kalin,

    in the DragCompleted, "state.DestinationSlots" is empty... Is this normal?!?

    Thank's
    Alain
  5. Kalin
    Admin
    Kalin avatar
    1207 posts

    Posted 03 Jul 2014 Link to this post

    Hello Alain,

    This is intended by design - in the DragDropCompleted method the DraggedAppointments are already updated and they have the times of the DestinationSlots (that is why the collection is empty - they are not needed anymore). So what I can suggest you would be to use the Start and End time of the Appointments in the DraggedAppointments collection in the DragDropCompleted method or to save the DestinationSlots collection in variable in the Drop method and use it afterwards in DragDropCompleted.

    Hope this helps.

    Regards,
    Kalin
    Telerik
     
    Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
     
Back to Top