Thank you for the clarification. In this case you can handle the PreviewDragStarted
() event of the RadTreeView
when the appropriate TextBox
/s is/are selected. For example, you can use the following sample code:
sender, Telerik.Windows.Controls.RadTreeViewDragEventArgs e)
UserControl1 draggedControl = e.DraggedItems
TextBox textBoxChild = draggedControl.FindChildByType<TextBox>();
However, if the UserControl1
contains more than 1 TextBox
, you can use the ChildrenOfType()
method instead of FindChildByType()
and check every TextBox whether it is focused.
I also prepared a sample project illustrating this approach. Please give it a try and let me know if it works for you.
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Telerik Public Issue Tracking
system and vote to affect the priority of the items