Select Appointment After Drop

2 posts, 0 answers
  1. Kieron
    Kieron avatar
    8 posts
    Member since:
    Jan 2016

    Posted 02 Aug 2016 Link to this post

    I've got some weird behaviour going on, its probably something I've done, but I can't seem to work out whats going on.

    I've set up two stack panels on my usercontrol, one called New Trip and one called New Misc Job - on initialize of the usercontrol I'm setting up the DragDropManager - actually all I'm doing is specifying the methods for DragIntialize like so :

    DragDropManager.AddDragInitializeHandler(newTripDrag, NewTripDragInitialize);
    DragDropManager.AddDragInitializeHandler(newJobDrag, NewMiscDragInitialize);


    When the user drags one of the stackpanels onto the scheduleview, I've got some custom dragdropbehaviour going on, but at the end of the Drop method, it always calls base.Drop() and this is where the weird behaviour comes in, when I'm dragging a trip, it works perfectly and the trip is selected afterwards, but when I drag a misc job, it fires off the SelectedAppointment method with a null value which makes nothing selected afterwards.

    Why would it be calling the SelectedAppointment for one and not the other, is there something I can change to stop this from happening, I've attached the Call Stack from the point of base.Drop() to Setting the SelectedAppointment for when I dragged a Misc Job (if that helps).

  2. Yana
    Yana avatar
    4575 posts

    Posted 04 Aug 2016 Link to this post

    Hi Kieron,

    I did not manage to reproduce the described behavior, is it possible to send us some code snippets demonstrating the scenario?

    Thanks in advance.

    Telerik by Progress
    Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Back to Top