i would like to drag RadTreeView Node to winform standard Panel, but when i drag and drop to the panel , my mouse always busying
my code as fellows
panel is System.Windows.Forms.Panel panel
this.tree is RadTreeView
this.panel.AllowDrop = true;
this.tree.AllowDrop = true;
this.tree.ItemDrag += Tree_ItemDrag;
this.tree.DragEnter += new DragEventHandler(this.tree_FunctionList_DragEnter);
this.panel.DragEnter += Panel_DragEnter;
this.panel.DragDrop += Panel_DragDrop;
private void Tree_ItemDrag(object sender, RadTreeViewEventArgs e)
{
RadTreeNode tn = e.Node as RadTreeNode;
if (tn != null)
{
(this.tree).DoDragDrop(tn, DragDropEffects.Copy);
}
}
private void tree_FunctionList_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}
private void Panel_DragDrop(object sender, DragEventArgs e)
{
RadTreeNode node = e.Data.GetData(typeof(RadTreeNode)) as RadTreeNode;
Console.WriteLine(node.Text);
}
private void Panel_DragEnter(object sender, DragEventArgs e)
{
e.Effect = DragDropEffects.Copy;
}