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

RadDropDownList AutoComplete Overlaps

4 Answers 125 Views
DropDownList
This is a migrated thread and some comments may be shown as answers.
Phil
Top achievements
Rank 1
Phil asked on 23 Feb 2016, 12:05 AM

I'm using 2016 Q1 Jan and the VisualStudio2012Light theme. I'm using a RadDropDownList with AutoCompleteMode = SuggestAppend.

I have a problem where if the values for the items in the list are very long then when you start typing and the suggestions appear then they overlap and make it very difficult to read.

When viewing the items in the list normally there is no problem and the items have ellipses.

Can you please assist?

4 Answers, 1 is accepted

Sort by
0
Phil
Top achievements
Rank 1
answered on 23 Feb 2016, 12:12 AM
When not using any themes it works as expected. I tested randomly with other themes and VisualStudio2012Dark also displays incorrectly. TelerikMetroTouch works fine though.
0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 23 Feb 2016, 02:03 PM
Hello Phil,

Thank you for writing.

I have logged it in our feedback portal. You can track its progress, subscribe status changes and add your vote/comment to it on the following link - feedback item.

I have also updated your Telerik points.

Currently, the possible solution that I can suggest is to increase the ItemHeight

this.radDropDownList1.DropDownListElement.AutoCompleteSuggest.DropDownList.ItemHeight = 40;

 

I hope this information helps. Should you have further questions I would be glad to help.
 
Regards,
Dess
Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Phil
Top achievements
Rank 1
answered on 15 Mar 2016, 09:17 PM

Thanks for the suggestion. Since we don't typically exceed the width of the list it looks a bit strange when everything is larger than needed.

Instead we've just allowed for the suggestions to autosize themselves. We would have preferred to allow for them to each rather display on a single line with an ellipsis (the same way the normal drop down list displays when you click the down arrow) but we couldn't get that to work at all.

This works for the suggestions but I have no idea why it doesn't apply to the normal list items as well?

1.listElement.AutoSizeItems = true;
2.listElement.DropDownListElement.ListElement.AutoEllipsis = false;
3.listElement.DropDownListElement.ListElement.TextWrap = true;

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 17 Mar 2016, 02:52 PM
Hello Phil,

Thank you for writing back. 

The following help article is quite useful sizing the drop down and autocomplete items: http://docs.telerik.com/devtools/winforms/dropdown-listcontrol-and-checkeddropdownlist/dropdownlist/item-sizing

Depending on the font, the autocomplete items may be sized differently and wrapped if possible. You can subscribe to the DropDownListElement.AutoCompleteSuggest.DropDownList.VisualItemFormatting event and specify the Font, and TextWrap property. As to the auto size behavior, it is necessary to set the RadDropDownList.AutoSizeItems property to true.

I hope this information helps. If you have any additional questions, please let me know.

Regards,
Dess
Telerik
Do you need help with upgrading your AJAX, WPF or WinForms project? Check the Telerik API Analyzer and share your thoughts.
Tags
DropDownList
Asked by
Phil
Top achievements
Rank 1
Answers by
Phil
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or