Unplanned
Last Updated: 17 Apr 2024 14:35 by ADMIN
ADMIN
Created by: Dess | Tech Support Engineer, Principal
Comments: 0
Category:
Type: Bug Report
1
To reproduce:

1. Drop RadApplicationMenu from the toolbox on to the windows form.
2. Click on the control to open menu and select "Add new > New RadMenuSeparatorItem" option to add new item.
3. Save the form.
4. Press Ctrl+Z to undo changes. Here added RadMenuSeparatorItem is removed from the control.
5. Now press Ctrl+Y to Redo the changes.
Here added item is not added again after performing Redo action.
Unplanned
Last Updated: 01 Mar 2019 12:57 by ADMIN

Please refer to the attached sample project.

1. Run the application, Excel will be opened.

2. In the Add-ins tab, click button2. A form with a RadMenu will be shown.

3. Close Excel but leave the form opened. As a result Excel hangs.

Unplanned
Last Updated: 20 Nov 2017 14:03 by ADMIN
Use attached to reproduce.

Workaround:
private void Item_Click(object sender, EventArgs e)
{
    menu.DropDown.ClosePopup(new PopupCloseInfo(RadPopupCloseReason.CloseCalled,null));
}
Unplanned
Last Updated: 14 Aug 2017 13:41 by ADMIN
How to reproduce: check the attached project and video

Workaround:
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();

        this.LostFocus += RadForm1_LostFocus1;
    }

    private void RadForm1_LostFocus1(object sender, EventArgs e)
    {
        //Workaround
        this.radMenu1.GetType().GetField("shouldShowChildren", System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.NonPublic).SetValue(this.radMenu1, false);
    }
}
Unplanned
Last Updated: 19 Jun 2017 11:09 by ADMIN
To reproduce:

Open a WinForms project.
Add a RadMenu and add a File menu item.
Add a Search Item to the File menu
Add an imagelist with images.
Drop the File Menu and select the Search menu item
Make sure the Search menuItem is selected in the property grid
Try to assign an imageIndex to the search MenuItem. You can't

Workaround: restart Visual Studio and try again to assign the ImageIndex.
Unplanned
Last Updated: 30 Mar 2016 09:17 by ADMIN
Unplanned
Last Updated: 30 Mar 2016 09:16 by ADMIN
Use the attached project to reproduce. It contains a workaround as well.
Unplanned
Last Updated: 30 Mar 2016 09:16 by ADMIN
How to reproduce:
Add a RadContextMenu and an ImageList to a form, then add some images to the image list and set the ImageList property of the context menu to equal the image list object. Add some items and sub items to the context menu. Setting the image index of a sub item is not reflected by the context menu.

Workaround:
   1. Design time: and the images as resources and set the image property of each item
   2. Set the image index of the sub items at runtime
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);
}
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
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;
                }
            }
        }
    }
}

Unplanned
Last Updated: 30 Mar 2016 09:14 by ADMIN
FIX. RadContextMenu/RadMenu - animations does not perform correctly on Windows 8

WORKAROUND

Execute ThemeResolutionService.AllowAnimations = false; before the context menu is opened and then Allow animations again when the context menu is closed
Unplanned
Last Updated: 30 Mar 2016 09:13 by ADMIN
Workaround:
menu.DropDown.RootElement.Children[0].Children[3].Children[1].Children[2].MaxSize = new Size(0, 400);
menu.DropDown.PopupElement.MaxSize = new Size(0, 400);
Unplanned
Last Updated: 30 Mar 2016 09:12 by ADMIN
To reproduce:
- Add RadForm with RadMenu with some items
- set this.IsMdiContainer = true;
- Run and hit the close button -> note the while closing the title bar looses its theme

WORKAROUND:
            radMenu1.IsMainMenu = false;
Unplanned
Last Updated: 30 Mar 2016 08:54 by ADMIN
Workaround: manually add the source menu items to the destination menu by the time of opening the child form and then when you close it, you should put them back.
Unplanned
Last Updated: 30 Mar 2016 08:53 by ADMIN
Steps to reproduce:
1. Add a RadMenu to a form
2. Add menu item with two sub menu items
3. Add a mnemonic to the first one e.g. &First
4. Add a shortcut to the second with the mnemonic letter of the first one e.g. Crtl + F
5. Run the application and open the menu popup, press Ctrl + F and you will see that the second item will be clicked and then the first one will be clicked as well.

The reason for this is that RadMenu and the PopupManager are both registered to listen for windows messages. When the popup handles the shortcut the popup receives a message and it handles the mnemonic.
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);
Unplanned
Last Updated: 29 Mar 2016 10:12 by ADMIN
If you try to style the Right column menu of RadApplicationMenu, your changes will not be persisted and applied to the control.

Workaround: 
FillPrimitive fill = (FillPrimitive)this.radRibbonBar1.RibbonBarElement.ApplicationButtonElement.DropDownMenu.RootElement.Children[0].Children[0].Children[2].Children[0].Children[2].Children[1].Children[0];
fill.BackColor = Color.Orange;
fill.BackColor2 = Color.Red;