This is a migrated thread and some comments may be shown as answers.

Treeview show Arrow (GenerateArrowCue) while dragging

1 Answer 19 Views
TreeView
This is a migrated thread and some comments may be shown as answers.
anwar
Top achievements
Rank 1
anwar asked on 22 Sep 2009, 01:50 PM
Hello,

I am trying to show the arrow (generatearrowcue) when the user drag and drop the tree node  in to list box. Here is my code snippet and the OnDragQuery event is not firing. Can you please help me what i am doing wrong.

this.tvMetadata.AddHandler(RadDragAndDropManager.DragQueryEvent, new EventHandler<DragDropQueryEventArgs>(OnDragQuery));
this.tvMetadata.AddHandler(RadDragAndDropManager.DragInfoEvent, new EventHandler<DragDropEventArgs>(OnDragInfo));

void OnDragInfo(object sender, DragDropEventArgs e)  

{
if (e.Options.Status == DragStatus.DragComplete) {

e.Handled = true;  

}

}

void OnDragQuery(object sender, DragDropQueryEventArgs e)  

{
if (e.Options.Status == DragStatus.DragQuery)  

{

e.Options.ArrowCue = RadDragAndDropManager.GenerateArrowCue();  

}

}

1 Answer, 1 is accepted

Sort by
0
Kiril Stanoev
Telerik team
answered on 24 Sep 2009, 01:30 PM
Hi Anwar,

An answer has been posted to your previous post:
http://www.telerik.com/community/forums/silverlight/treeview/treeview-show-arrow-generatearrowcue-while-dragging.aspx

Greetings,
Kiril Stanoev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
TreeView
Asked by
anwar
Top achievements
Rank 1
Answers by
Kiril Stanoev
Telerik team
Share this question
or