or
Hello,
there is a strange problem adding some RadContextMenuItems to the context menu from a GridView.
It works fine to catch the ContextMenuOpening event and add the Items (3 Separators and 4 MenuItems in this case) from a RadContextMenu on the form by the following code snippet:
Private Sub DataGridViewMain_ContextMenuOpening(ByVal sender As System.Object, ByVal e As Telerik.WinControls.UI.ContextMenuOpeningEventArgs) Handles DataGridViewMain.ContextMenuOpening |
Try |
e.ContextMenu.Items.AddRange(RadContextMenuGridView.Items) |
Catch |
End Try |
End Sub |