Completed
Last Updated: 05 Nov 2014 12:50 by ADMIN
ADMIN
Peter
Created on: 30 Oct 2014 08:01
Category: UI Framework
Type: Bug Report
0
FIX. RadDropDown popup is closed when click the ScrollBar
Workarround1:
this.radDropDownList1.PopupClosing += radComboDemo_PopupClosing;
void radComboDemo_PopupClosing(object sender, RadPopupClosingEventArgs args)
{
            Point relativeMousePositionInPopup = ((RadDropDownListElement)sender).ListElement.ElementTree.Control.PointToClient(Control.MousePosition);
            args.Cancel = ((RadDropDownListElement)sender).ListElement.VScrollBar.ControlBoundingRectangle.Contains(relativeMousePositionInPopup);            
}

Workaround2:
class MyDropDownList : RadDropDownList
{
    public MyDropDownList()
    {
        this.PopupClosing += MyDropDownList_PopupClosing;
    }
 
    void MyDropDownList_PopupClosing(object sender, RadPopupClosingEventArgs args)
    {
        Point relativeMousePositionInPopup = ((RadDropDownListElement)sender).ListElement.ElementTree.Control.PointToClient(Control.MousePosition);
        args.Cancel = ((RadDropDownListElement)sender).ListElement.VScrollBar.ControlBoundingRectangle.Contains(relativeMousePositionInPopup);
    }
 
    public override string ThemeClassName
    {
        get
        {
            return typeof(RadDropDownList).FullName;
        }
    }
}
1 comment
ADMIN
Stefan
Posted on: 05 Nov 2014 12:50
We have just issued a new release - Q3 2014 2014.3.1104, which covers this issue and couple more issues important for our customers. For complete list of changes, please refer to our Release Notes (http://www.telerik.com/support/whats-new/winforms/release-history/ui-for-winforms-q3-2014-(version-2014.3.1104)).