Approved
Last Updated: 19 Dec 2017 17:08 by ADMIN
ADMIN
Hristo
Created on: 15 Dec 2017 12:08
Category: Buttons
Type: Bug Report
1
FIX. RadSplitButton - the horizontal scrollbar is visible although not needed when the drop-down popup has a small width
How to reproduce: add several menu items displaying only images to the split button and set the MaximumSize property of the drop-down menu

Workaround:
public RadForm1()
{
    InitializeComponent();

    this.radSplitButton1.DropDownButtonElement.DropDownMenu.MaximumSize = new Size(30, 0);
    RadScrollBarElement element = this.radSplitButton1.DropDownButtonElement.DropDownMenu.PopupElement.FindDescendant<RadScrollBarElement>();
    element.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
    element.RadPropertyChanging += Element_RadPropertyChanging;
}

private void Element_RadPropertyChanging(object sender, Telerik.WinControls.RadPropertyChangingEventArgs args)
{
    if (args.Property.Name == "Visibility")
    {
        args.Cancel = true;
    }
}
(Total attached files size should be smaller than 20mb. Allowed extensions: .zip, .rar, .jpg, .png, .gif)
0 comments