This is a migrated thread and some comments may be shown as answers.

Telerik.WinControls.UI.RadDropDownList How to Resize PopUp which appears at autocomplete part?

2 Answers 101 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
mudzakkir
Top achievements
Rank 1
mudzakkir asked on 01 Apr 2015, 09:56 AM
Hi.. My autocomplete which appears at dropdownlist is cropped an I can not scroll the popup.
How can I resize the popup?

Please check this picture below

2 Answers, 1 is accepted

Sort by
0
Accepted
Hristo
Telerik team
answered on 06 Apr 2015, 08:05 AM
Hello Mudzakkir,

Thank you for writing.

You can set the DropDownMinSize of the DropDownList object contained in the AutoCompleteSuggest element. Additionally you can also set a minimum size which will affect the popup of the DropDownList even when an AutoCompleteSuggest​ element is not required. Please see my code snippet below:
private void Form1_Load(object sender, EventArgs e)
{
    string[] items = new string[10];
    for (int i = 0; i < 10; ++i)
    {
        string text = "Item " + (i + 1).ToString();
        items[i] = text;
    }
 
    this.radDropDownList1.DataSource = items;
    this.radDropDownList1.AutoCompleteMode = AutoCompleteMode.Suggest;
 
    Size popupSize = new Size(200, 500);
    this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.DropDownMinSize = popupSize;
    this.radDropDownList1.DropDownListElement.DropDownMinSize = popupSize;
}

I am also sending you a gif file with the result on my end. 

I hope this helps. Should you have further questions please do not hesitate to write back.

Regards,
Hristo Merdjanov
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 
0
mudzakkir
Top achievements
Rank 1
answered on 06 Apr 2015, 08:54 AM

Perfect!

 

Thank You Sir..

Tags
DropDownList
Asked by
mudzakkir
Top achievements
Rank 1
Answers by
Hristo
Telerik team
mudzakkir
Top achievements
Rank 1
Share this question
or