Is it possible to put a RadContextMenu on a MapPolygon? I have tried and the menu does not show up on right-click.
Thanks,
Mike
1 Answer, 1 is accepted
0
Andrey
Telerik team
answered on 24 Jul 2013, 02:15 PM
Hi Michael,
In fact the map shape is not a visual object. It is a data object. So, you can use the RadContextMenu only with visual representation of the MapPolygon. You can get it using the InformationLayer.ItemContainerGenerator.
The sample code is below.
var menu = RadContextMenu.GetContextMenu(this.polygon);
RadContextMenu.SetContextMenu(container, menu);
}
}
}
}
}
Regards,
Andrey Murzov
Telerik
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WPF.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely. Sign up for Free application insights >>