Declined
Last Updated: 03 Jun 2020 12:57 by ADMIN
Rhonah
Created on: 11 May 2020 05:53
Category: DropDownList
Type: Bug Report
0
RadDropDownList: popup should be closed when the control changes its location

My scenario is that I have two Panels which changes Size on mouseleave/ mouseEnter events. One panel has a dropdownlist control. When popup is opened and Panel1 changes size upon Mouseenter event, the popup does not change its location. I've tried changing the popup Left property but doesn't fix the issue. Please see attached sample application.

Workaround:

        private void RadPanel1_MouseLeave(object sender, EventArgs e)
        {
            this.radDropDownList1.DropDownAnimationEnabled = false;
            this.radDropDownList1.DropDownListElement.ClosePopup();
            radPanel1.Size = new Size(30, 400);
            radPanel2.Left = radPanel1.Right + 30;
            this.radDropDownList1.DropDownListElement.ShowPopup();
        }

        private void RadPanel1_MouseEnter(object sender, EventArgs e)
        {
            this.radDropDownList1.DropDownAnimationEnabled = false;
            this.radDropDownList1.DropDownListElement.ClosePopup();
            radPanel1.Size = new Size(200, 400);
            radPanel2.Left = radPanel1.Right + 30;
            this.radDropDownList1.DropDownListElement.ShowPopup();
        }

Attached Files:
1 comment
ADMIN
Dimitar
Posted on: 03 Jun 2020 12:57

The popups can be closed manually when the location of their owner control changes, e.g. the drop-down list. If the owner control is located in some panel or other nested container, the popup can be closed when the location of the container changes.

private void radPanel2_LocationChanged(object sender, EventArgs e)
{
    this.radDropDownList1.DropDownListElement.ClosePopup();
} 
Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.