Drag And Drop within the RadMenu

2 posts, 0 answers
  1. David
    David avatar
    9 posts
    Member since:
    Oct 2010

    Posted 11 Jun 2011 Link to this post

    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.

        ItemTemplate="{StaticResource MenuItemTemplate}"
        ItemsSource="{Binding MenuItemList}"
        IconColumnWidth="0" />
  2. Dimitrina
    Dimitrina avatar
    3769 posts

    Posted 14 Jun 2011 Link to this post

    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?

    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
Back to Top