Completed
Last Updated: 20 Jan 2015 17:56 by ADMIN
Workaround:

 foreach (RadMenuItem item in radMenu1.Items)
            {
                item.Layout.Text.Font = new Font("Tahoma", 12, FontStyle.Bold);
            }
Completed
Last Updated: 05 Nov 2014 12:49 by ADMIN
The default value of the RadMenuButtonItem.TextImageRelation property was ImageBeforeText until Q3 2014 after which it has changed to Overlay.
Completed
Last Updated: 05 Nov 2014 12:50 by ADMIN
To reproduce: 
1. Add RadForm and set the following properties at design time: 
this.AutoSize = true;
this.WindowState = FormWindowState.Maximized;
this.Size = new Size(750, 500); 
2. Add RadMenu and add more than 10 menu items
3. Run the application and you will see that menu items are overlapped (see the attached image)

Workaround: 
Restore the WindowState of form to Normal at design time and set the WindowState to Maximized run time in the Load event of form. Here is the snippet: 
private void RadForm1_Load(object sender, EventArgs e)
{
    this.WindowState = FormWindowState.Maximized;
}
Completed
Last Updated: 05 Nov 2014 12:50 by ADMIN
You can use following workarounds:

1)The menu items are components and you can edit any menu item directly in your code. For example:
this.radMenuItem10.Click+=menuItemClickMethod;

Also you can selected and edit them in these ways:

2) Selected a particular menu item via Visual Studio's Document Outline window (ctrl+W, U). Then you will be able to selected the desired item from the hierarchy. After that item will be selected in the property grid and you can add/remove events and edit its properties.

3) You can select a specific menu item directly via Visual Studio's Property Grid's Component combobox (on the top of the property grid)
Declined
Last Updated: 10 Nov 2014 12:05 by ADMIN
Created by: Steven
Comments: 2
Category:
Type: Bug Report
0
When right clicking on a control near the bottom of the screen, the context menu (implemented as a RadContextMenu) opens downwards from the point where the mouse was clicked. This results in the majority of the menu going off the bottom of the screen.

On subsequent right clicks in the same area, the context menu opens upwards from the click position, which is correct functionality as the menu is not obscured.

The menu is shown by calling:
contextMenu.Show(viewerControl, e.Location);

The bug occurs the first time that the context menu is shown on a control.
Completed
Last Updated: 31 May 2018 12:39 by ADMIN
Such a functionality needs to be defined on an application level. In the 2018 R2 release we have added Recently Used Menu items in the Visual Style Builder application and the approach there can serve as an example.
Completed
Last Updated: 05 Nov 2014 14:02 by ADMIN
To reproduce: 
1. Drag and drop RadMenu on form. 
2. Add few items
3. Set design time the ForeColor of of RadMenuItem to red.  The ForeColor is changed.
4. Run the form and you will see that the ForeColor of RadMenuItem is black again. 

Workaround:  
1. Set the ForeColor run time using following code  snippet: 
this.radMenuItem1.ForeColor = Color.Red;
 
2. Set the ForeColor of TextPrimitive through Element hierarchy editor. You can see the DesignTimeSetForeColorOfRadMenuItem.png image how to set it.  
Completed
Last Updated: 09 Jun 2015 05:11 by ADMIN
Add text to separator items
Declined
Last Updated: 11 Sep 2018 12:02 by ADMIN
To reproduce:

Add a RadMenu and a RadMenuItem. To the RadMenuItem add another items, make some of them disabled. Open the first menu item and navigate with the arrows, you will see that the disabled items are selected but no visually.

They should be skipped during navigation

Workaround:

Use the following custom RadMenuItem. The navigation logic is overriden in the RadDropDownMenu:

public class MyMenuItem : RadMenuItem
{
    public MyMenuItem()
        : base()
    {

    }

    public MyMenuItem(string text)
        : base(text)
    {
    }

    protected override RadDropDownMenu CreateDropDownMenu()
    {
        return new MyDropDown(this);
    }

    protected override Type ThemeEffectiveType
    {
        get
        {
            return typeof(RadMenuItem);
        }
    }
}

public class MyDropDown : RadDropDownMenu
{
    public MyDropDown(RadElement owner)
        :base(owner)
    {
    }

    protected override bool ProcessUpDownNavigationKey(bool isUp)
{
    var selectedItem = this.GetSelectedItem();

    RadItem nextItem = selectedItem;

    var itemIndex = this.Items.IndexOf(selectedItem);
    for (int i = itemIndex; i < this.Items.Count - itemIndex; i++)
    {
        nextItem = this.GetNextItem(nextItem, !isUp);
        if (nextItem.Enabled)
        {
            break;
        }
    }

    this.SelectItem(nextItem);

    return true;
}


    public override string ThemeClassName
    {
        get
        {
            return typeof(RadDropDownMenu).FullName;
        }
        set
        {
        }
    }
}

Completed
Last Updated: 13 Apr 2016 13:11 by ADMIN
To reproduce:

RadMenuItem item = new RadMenuItem();
item.Text = "Item1";    

RadMenuComboItem comboItem = new RadMenuComboItem();
comboItem.ComboBoxElement.DropDownStyle = RadDropDownStyle.DropDownList; 
comboItem.Items.Add("meters");
comboItem.Items.Add("feet");         
item.Items.Add(comboItem);
this.radApplicationMenu1.Items.Add(item);


The undesired behavior is illustrated better in the attached file.

Workaround:

item.DropDownClosing += item_DropDownClosing;
comboItem.ComboBoxElement.EditableElement.MouseDown += EditableElement_MouseDown;
comboItem.ComboBoxElement.EditableElement.MouseUp += EditableElement_MouseUp;

bool shouldCancel = false;

private void EditableElement_MouseUp(object sender, MouseEventArgs e)
{
    shouldCancel = false;
}

private void EditableElement_MouseDown(object sender, MouseEventArgs e)
{
    shouldCancel = true;
}

private void item_DropDownClosing(object sender, RadPopupClosingEventArgs args)
{
    args.Cancel = shouldCancel;
}

private void ComboBoxElement_SelectedIndexChanged(object sender, PositionChangedEventArgs e)
{
    RadDropDownListElement ddle = sender as RadDropDownListElement;
    if (ddle != null && e.Position < ddle.Items.Count)
    {
        RadMessageBox.Show(ddle.Items[e.Position].Text);
    }
}
Unplanned
Last Updated: 30 Mar 2016 09:16 by ADMIN
To reproduce:

1. Add a RadMenu with one item which has one child item.

2. Click on  "radMenuItem1"  then  will appear  "radMenuItem2 " . - Keep ("radMenuItem2") open and  do not click on it  - 

3. Go out of the form and click on empty area .

4. Return to the menu and just move mouse over the "radMenuItem1"  and it will appear "radMenuItem2" and also move the mouse over the "radMenuItem2" and keep it open . ("do not click on menus")

5. Go out of the form and click the Show Desktop button on the bottom right of the screen

6. Now you can see the problem ,  the menu has not closed



Workaround:

override the WndProc method in your Form with the following:



protected override void WndProc(ref Message m)
{
    if (m.Msg == NativeMethods.WM_SIZE && (int)m.LParam == 0 && (int)m.WParam == 1)
    {
        PopupManager.Default.CloseAll(RadPopupCloseReason.AppFocusChange);
    }

    base.WndProc(ref m);
}

if the above does not work, you can try the following:

private void Form1_Deactivate(object sender, EventArgs e)
{
  PopupManager.Default.CloseAll(RadPopupCloseReason.AppFocusChange);
}
Completed
Last Updated: 14 Jun 2014 06:46 by ADMIN
To reprodue:
-Add a RadMenu with several items and sub items.
-Add shortcuts for some of the sub items (e.g. CTRL + SHIFT + A).
-Run the application and press CTRL + SHIFT + A. As a result the Click event for the specific items is fired. This is correct behavior.
-If you add a RadButton, which Click event shows a RadMessageBox and display the message box before pressing CTRL + SHIFT + A, the Click event for the certain item is fired again, although the main form is currently not active.

Workaround:
public class CustomRadMenuItem : RadMenuItem
{
    public CustomRadMenuItem(string text) : base(text)
    {
    }

    protected override Type ThemeEffectiveType     
    { 
        get    
        { 
            return typeof(RadMenuItem);     
        }
    }

    protected override bool CanHandleShortcut(ShortcutEventArgs e)
    {
        Control owner = this.OwnerControl;
        if (owner == null)
        {
            return false;
        }

        Form form = owner.FindForm();

        if (form == null)
        {
            RadDropDownMenu toolTipOwner = owner as RadDropDownMenu;
            if (toolTipOwner != null && toolTipOwner.Owner != null)
            {
                form = ((RadMenuElement)this.Owner).ElementTree.Control.FindForm();
                if (form != null)
                {
                    Form activeForm = e.FocusedControl == null ? Form.ActiveForm : e.FocusedControl.FindForm();
                    return form == activeForm || form.ContainsFocus;
                }
            }
        }

        return base.CanHandleShortcut(e);
    }
}

Unplanned
Last Updated: 30 Mar 2016 09:16 by ADMIN
To reproduce:
- Add RadMenu with some items to a blank form.
- Initialize the menu like this:
Me.RadMenu1.RightToLeft = System.Windows.Forms.RightToLeft.Yes
Me.RadMenu1.DropDownAnimationEnabled = True
Me.RadMenu1.DropDownAnimationFrames = 30
Me.RadMenu1.DropDownAnimationEasing = RadEasingType.OutElastic

- Show the item drop down manually :
Private Sub RadMenuItem_MouseHover(sender As Object, e As EventArgs)
    Dim item As RadMenuItem = TryCast(sender, RadMenuItem)
    If item IsNot Nothing Then
        item.DropDown.Show()
    End If
End Sub
Completed
Last Updated: 01 Oct 2014 13:00 by ADMIN
Add two menu items to a context menu and set their texts to "&Command 1" and "&Command 2". Add some actions to to be executed when each is clicked. Set the visibility of the first one to hidden or collapsed and run the project. Open the context menu and press the "C" key. You will see that the action of the first menu item will be executed although only the second is visible in the context menu.
Unplanned
Last Updated: 30 Mar 2016 09:14 by ADMIN
To reproduce:

Add a RadForm as MDI child to another form. Add RadMenu to the child and the main forms. Associate hotkeys as follows:

RadMenuItem item = new RadMenuItem;
item.Text = "&File";

You will notice that only the main menu can be accessed with the Alt key and the shortcut.

Workaround:
Subscribe for each childform's KeyUp event and use the following event handler:
private void childForm_KeyUp(object sender, KeyEventArgs e)
{
    Form form = sender as Form;
    if (!form.Focused)
    {
        return;
    }

    RadMenu menu = null;
    foreach (Control control in form.Controls)
    {
        if (control is RadMenu)
        {
            menu = control as RadMenu;
            break;
        }
    }

    if ((Control.ModifierKeys & Keys.Alt) == Keys.Alt && menu != null)
    {
        foreach (RadItem item in menu.Items)
        {
            int ampersantIndex = item.Text.IndexOf("&");
            if (ampersantIndex != -1)
            {
                char hotkeyChar = item.Text[ampersantIndex + 1];
                if (char.ToLower(hotkeyChar) == char.ToLower((char)e.KeyValue))
                {
                    item.PerformClick();
                    break;
                }
            }
        }
    }
}

Completed
Last Updated: 11 Mar 2014 10:52 by ADMIN
To reproduce:
Add a RadGridView and RadScrollable panel. Set autoscroll of the panel to true. Add to grid to a splitpanel. Run the application and show the context menu by clicking a header cell. You will notice that a bottom scrollbar is showing.
Completed
Last Updated: 27 Feb 2014 16:33 by ADMIN
ADMIN
Created by: Georgi I. Georgiev
Comments: 0
Category:
Type: Bug Report
1
To reproduce:
Add a RadSplitContainer to a form, add two SplitPanels, add a RadContextMenuManager, add a RadContextMenu and configure it to work with the splitpanels. Run the project, display the context menusa few times until you are no longer able to.
Completed
Last Updated: 27 Feb 2014 11:47 by ADMIN
ADMIN
Created by: Georgi I. Georgiev
Comments: 0
Category:
Type: Bug Report
2
To reproduce: Add a RadgridView, open the context menu with RightClick and you will see the form blink. 

Workaround: void grid_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e) { e.Cancel = true; e.ContextMenu.Show(this.grid.GridViewElement, this.grid.PointToClient(MousePosition)); } 
Unplanned
Last Updated: 30 Mar 2016 08:53 by ADMIN
Steps to reproduce:
1. Add a RadMenu to a form
2. Set up the form to be an MDI parent
3. Add a menu item and set its MdiList property to true
4. Add several mdi children and run the project

You will see that the menu drop down will have scroll bar(s)

Workaround the issue by setting the MinSize property of the last item in the items in the drop down:

  radMenuItem1.Items[radMenuItem1.Items.Count - 1].MinSize = new System.Drawing.Size(0, radMenuItem1.Items[radMenuItem1.Items.Count - 1].Size.Height + 1);