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

How to know Drag is internalized from TreeListViewRow or Row detailer

1 Answer 27 Views
TreeListView
This is a migrated thread and some comments may be shown as answers.
Dharmavaram
Top achievements
Rank 1
Dharmavaram asked on 10 Jan 2018, 11:00 AM

I have TreeListView with some of the "TreeListViewRow" have row detailers. 

I implemented Drag and Drop functionality using "DragDropManager". 

I want to prevent drag initialization when we start dragging from Row detailer. 

But "DragInitializeEventArgs" args giving "OriginalSource" value always the parent row even in case of drag starting from Row detailer.

Any help in this regard is highly appreciated. 

 

Thank you.

 

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 15 Jan 2018, 10:16 AM
Hello Dharmavaram,

To achieve your requirement you can set the DragDropManager.AllowDrag attached property to True also on the element in the row details. This way the row details element will be included in the drag/drop operation and you could get it through the OriginalSource of the event arguments. Can you please check the attached project and let me know if it helps?

Regards,
Martin Ivanov
Progress Telerik
Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Tags
TreeListView
Asked by
Dharmavaram
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or