Hi, i drag and drop from a ListView (MS) to a RadTreeView
But i need a function that if the mouse is while is dragging over a node it should be automaticly expand so that the user can browse the tree where he can drop the item.
How can i archive that?
Here are my codes:
???
And yea, another small question here :D
How can i expand/open a node with just the id is stored in the tag field?
Thank you for the help
Volkan
But i need a function that if the mouse is while is dragging over a node it should be automaticly expand so that the user can browse the tree where he can drop the item.
How can i archive that?
Here are my codes:
private
void
listView_Result_ItemDrag(
object
sender, ItemDragEventArgs e)
{
lblDragID.Text = listView_Result.SelectedItems[0].Tag.ToString();
listView_Result.DoDragDrop(listView_Result.SelectedItems, DragDropEffects.Move);
}
private
void
TreeHome_DragDrop(
object
sender, DragEventArgs e)
{
try
{
string
x = lblDragID.Text;
Point p = System.Windows.Forms.Control.MousePosition;
// Expand node if the mouse is over a one, and get the node id if the drop is finished (?)
MessageBox.Show(lblDragID.Text);
lblDragID.Text =
"0"
;
}
catch
(Exception ex)
{
MessageBox.Show(ex.Message);
}
}
???
And yea, another small question here :D
How can i expand/open a node with just the id is stored in the tag field?
Thank you for the help
Volkan