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

DragDropManager update (RadDragAndDropManager )

3 Answers 79 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
Raghavendra
Top achievements
Rank 1
Raghavendra asked on 03 Sep 2013, 09:14 PM
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

3 Answers, 1 is accepted

Sort by
0
Nick
Telerik team
answered on 04 Sep 2013, 08:02 AM
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 >>
0
Raghavendra
Top achievements
Rank 1
answered on 04 Sep 2013, 01:35 PM
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

0
Nick
Telerik team
answered on 05 Sep 2013, 06:26 AM
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 >>
Tags
DragAndDrop
Asked by
Raghavendra
Top achievements
Rank 1
Answers by
Nick
Telerik team
Raghavendra
Top achievements
Rank 1
Share this question
or