I create a RadMenu in a MDI Parent form dynamically. Each menu item has a tag property with a value that references a string. I also have a form that is open that has a Split Container, Panel and within the panel, a Panorama object with a PanelGroup, ready to add a tile. I would like to drag from the RadMenuItem and drop into the PanelGroup and create a tile that has a reference (can also be the Tile's tag).
I already have this working when I drag from a TreeView to create a tile, as well as dragging from a desktop shortcut... Although I can set the RadMenuItem.AllowDrag property = true, I don't see anyway to trigger and work with this...
5 Answers, 1 is accepted
Thank you for writing.
The following example shows how you can perform a drag and drop operation between RadMenu and RadPanorama:
Could you please check and let me know how it fit's in your case?
I am looking forward to your reply.
Thank you for writing back.
You can start the drag drop in the MouseMove event instead:
Please let me know if there is something else I can help you with.
I am getting an error on the IsRealDrag method - does not exist in the current context... here is my code (where loNew = the RadMenuItem and mainMenuStrip is the RadMenu object):
private void loNew_MouseMove(object sender, MouseEventArgs e)
if (e.Button != MouseButtons.Left)
if (IsRealDrag(mouseDownPosition, e.Location))
var item = sender as RadMenuItem;
Apparently I haven't copied the entire snippet. Here is the method:
Let me know if you have additional questions.