Does anybody know how to get the name of the control (Listview) when using the DragDropService >> PreviewDragOver >> e.HitTarget ?
I have got multiple listviews on a form and depending on the source the DragItem may not be dropped.
Grtz Patrick Vossen
2 Answers, 1 is accepted
0
Accepted
Dimitar
Telerik team
answered on 02 Oct 2018, 01:16 PM
Hi Johan,
You can get the control from any element using the ElementTree.Control method. Here is an example:
Console.WriteLine(item.ElementTree.Control.Name);
I hope this will be useful. Let me know if you have additional questions.
Regards,
Dimitar
Progress Telerik
Get quickly onboard and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers.Learn More.