This is a migrated thread and some comments may be shown as answers.
Autocomplete list size
5 Answers 137 Views
This is a migrated thread and some comments may be shown as answers.
Alex
Top achievements
Rank 1
Alex asked on 12 Jan 2011, 07:05 PM
Hello,

I am trying to find out if there is a way to make an autocomplete list to be wider by default. There is a property DropDownMinSize that allows changing the minimum size for the full drop down list, but the one that pops up as user start typing with AutoComplete mode set to SuggestAppend is always sized to the width of the control. How do I make it match the size of a full drop down list?

Thanks.

5 Answers, 1 is accepted

Sort by
0
Peter
Telerik team
answered on 14 Jan 2011, 12:17 PM
Hi Alex,

Thank you for the question.

You can set the size of the auto suggest popup using the following code:

radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.DropDownMinSize = new Size(300, 300)

The code snippet below demonstrates how to set the size of the main popup:
radDropDownList1.DropDownListElement.DropDownMinSize = new Size(200,200)

I hope this helps

 

Regards,
Peter
the Telerik team
Q3’10 SP1 of RadControls for WinForms is available for download; also available is the Q1'11 Roadmap for Telerik Windows Forms controls.
0
Bruno
Top achievements
Rank 1
answered on 17 Mar 2011, 12:00 PM
Is there a way to keep the appearance of the AutoCompleteSuggest:DropDownList equal to the main DropDownList?
0
Peter
Telerik team
answered on 17 Mar 2011, 04:38 PM
Hi Bruno,

Thank you for writing back.

The drop-down popup that contains the items and the autocomplete drop-down popup are different objects and when you set a property to the first popup, this setting is not applied automatically to the second one. So, if you want to change the SizingMode of the autocomplete popup, you should apply this setting to the DropDownList of the AutoCompleteSuggest object:

radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.DropDownSizingMode = Telerik.WinControls.UI.SizingMode.None;

This will prevent the users from resizing the AutoCompleteSuggest popup.

We would kindly ask you to use just one support channel to ask one specific question. Posting the same questions more than once may slow down our response time, because we need to review and address two or more tickets instead of one. Thank you for your understanding.

Do not hesitate to contact us if you have other questions.

 

All the best,
Peter
the Telerik team
0
Rowen
Top achievements
Rank 1
answered on 22 Apr 2012, 02:48 AM
Can I suggest that the autocomplete list should automatically be the same size as the dropdown list - this makes sense since it will always be the same data, so current behaviour seems like a bug really.
0
Peter
Telerik team
answered on 23 Apr 2012, 03:19 PM
Hi Rowen,

Thank you for writing.

This is the expected behavior from RadDropDownList. As you see in this thread, you can easy access and re-size both popups:
radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.DropDownMinSize = new Size(400, 200);
radDropDownList1.DropDownMinSize = new Size(400, 200);

 Let me know if this solution is applicable for you.

Greetings,
Peter
the Telerik team
RadControls for WinForms Q1'12 release is now live! Check out what's new or download a free trial >>
Asked by
Alex
Top achievements
Rank 1
Answers by
Peter
Telerik team
Bruno
Top achievements
Rank 1
Rowen
Top achievements
Rank 1
Share this question
or