Thanks for writing.
The color of the horizontal line can be changed by setting the DropFeedbackColor
property of RadTreeView.
The Drag&Drop restrictions can be made by subscribing to the DragOverNode
event of the RadTreeView
and setting the RadTreeViewDragCancelEventArgs Cancel
property to true depending on the RadTreeViewDragCancelEventArgs
Direction property. The following code snippet restricts a node so that only children nodes can be added to it:
|void radTreeView1_DragOverNode(object sender, RadTreeViewDragCancelEventArgs e)
| if (e.TargetNode.Text == "Node2" && e.Direction != Telerik.WinControls.ArrowDirection.Right)
| e.Cancel = true;
Note that Windows Forms also has an enum called ArrowDirection
, thus you need to use the fully qualified name of the enum.
Please write again if you have further questions.
All the best,
the Telerik team
Check out Telerik Trainer
, the state of the art learning tool for Telerik products.