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

Drag And Drop within the RadMenu

1 Answer 76 Views
DragAndDrop
This is a migrated thread and some comments may be shown as answers.
David
Top achievements
Rank 1
David asked on 11 Jun 2011, 08:31 PM
I'm trying to implement the Rad Drag and Drop within the RadMenu control but I can't get the events to fire, specifically the OnDrag event.

I've bound the Allow Drop to the RadMenu itself as I want the user to be able to drag a menu item from a "sub menu" and make a "quick link" on the main menu.  The Allow Drag command is placed on a Border control within the ItemTemplate of the menu and is ONLY displayed for each Sub Menu item.

<telerik:RadMenu
    telerik:RadDragAndDropManager.AllowDrop="True"
    ItemTemplate="{StaticResource MenuItemTemplate}"
    ItemsSource="{Binding MenuItemList}"
    IconColumnWidth="0" />

1 Answer, 1 is accepted

Sort by
0
Dimitrina
Telerik team
answered on 14 Jun 2011, 12:43 PM

Hi David,

 In order to get the OnDrag event to fire, may you please set the handledEventsToo parameter to True when you are adding the event handler for the OnDrag event, like:

RadDragAndDropManager.AddDragQueryHandler(control, OnDragQuery, true);
private void OnDragQuery(object sender, DragDropQueryEventArgs e)
{ ...
}

Does this solve your problem?

Greetings,
Didie
the Telerik team
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
Tags
DragAndDrop
Asked by
David
Top achievements
Rank 1
Answers by
Dimitrina
Telerik team
Share this question
or