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.
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();
}
}