Completed
Last Updated: 11 Sep 2015 10:33 by ADMIN
ADMIN
Hristo
Created on: 03 Jul 2015 09:42
Category: CommandBar
Type: Bug Report
0
FIX. RadCommandBar - popup of dropdown button not properly positioned when form is maximized
Workaround: 
public partial class RadForm1 : Telerik.WinControls.UI.RadForm
{
    public RadForm1()
    {
        InitializeComponent();

        this.commandBarDropDownButton2.DropDownMenu.DropDownOpening += DropDownMenu_DropDownOpening;
    }

    private void DropDownMenu_DropDownOpening(object sender, CancelEventArgs e)
    {
        if (this.WindowState == FormWindowState.Maximized)
        {
            RadDropDownMenu dMenu = sender as RadDropDownMenu;

            RadPopupOpeningEventArgs eventArgs = (RadPopupOpeningEventArgs)e;
            eventArgs.CustomLocation = new System.Drawing.Point(eventArgs.CustomLocation.X + this.commandBarDropDownButton2.Size.Width, eventArgs.CustomLocation.Y);
        }
    }
}
Attached Files:
0 comments