DragDropManager update (RadDragAndDropManager )

4 posts, 0 answers
  1. Raghavendra
    Raghavendra avatar
    3 posts
    Member since:
    Jul 2013

    Posted 03 Sep 2013 Link to this post

    Hi,

    I was previously using RadDragAndDropManager and in AddDragQueryHandler i was locating the source
    element that was dragged and using e.Options.Source from DragDropQueryEventArgs and based on some logic
    i was enable/disable the drag. Now i am using the DragDropManger and i see i dont have access to e.Options.Source 
    object.

    So let me know how can i find the source element (UI) and may be the mouse position from where the drag started that can help
    fix the upgrade to DragDropManager.


    Thanks
    Raghu
  2. Nick
    Admin
    Nick avatar
    593 posts

    Posted 04 Sep 2013 Link to this post

    Hi Raghu,

    You can use the DragIntialize event to save a reference to the initial source of the DragOperation and use it later on in your logic.

    Hope this helps! 

    Regards,
    Nik
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
  3. UI for WPF is Visual Studio 2017 Ready
  4. Raghavendra
    Raghavendra avatar
    3 posts
    Member since:
    Jul 2013

    Posted 04 Sep 2013 Link to this post

    I am trying to find the equivalent of  e.Options.MouseClickPoint (RadDragAndDropManager) in DragDropManager.
    I have this event 

    DragDropManager.AddDragInitializeHandler(this, OnDragInitialize);                    

    private void OnDragInitialize(object sender, DragInitializeEventArgs e)
    {

    }

    but i cannot find the equivalent of e.Options.MouseClickPoint. I need the source point from where the drag was performed.

    Thanks
    Raghu

  5. Nick
    Admin
    Nick avatar
    593 posts

    Posted 05 Sep 2013 Link to this post

    Hi Raghu,

    You can use the RelativeStartPoint in the DragInitializeEventsArgs.

    Hope this helps! 

    Regards,
    Nik
    Telerik
    TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
    Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
    Sign up for Free application insights >>
Back to Top