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

Height of autocomplete

1 Answer 179 Views
AutoCompleteBox
This is a migrated thread and some comments may be shown as answers.
Dan
Top achievements
Rank 1
Dan asked on 04 Apr 2013, 08:00 PM
Hello,

I have an AutoComplete defined like:
<telerik:RadAutoCompleteBox ID="ctrlBox"
               runat="server"
               InputType="Text"
               AllowCustomEntry="false"
               Filter="Contains"
               Delimiter=" "
               Width="400px"
               DropDownWidth="400px"
               OnClientDropDownOpening="openingDropdown"
               OnClientDropDownClosed="closedDropdown"
               OnClientLoad="loadingAutoComplete"
               OnClientRequesting="requesting" >
               <WebServiceSettings Path="Service.svc" Method="Search" />
        </telerik:RadAutoCompleteBox>

The problem is when a value that exceeds 400px is in the box it expands the box to two lines with the second line being blank.

All the text stays on the first line and gets cutoff (which is fine). Is there a way to specify the box only be one line or give it a height? I just want to get rid of that second blank line. Clicking out of the box or pressing "backspace" does not remove the line.

The only way to get rid of the line is to delete the >400px entry and the box will collapse back to one line.

1 Answer, 1 is accepted

Sort by
0
Nencho
Telerik team
answered on 09 Apr 2013, 01:49 PM
Hello Daniel,

I am afraid to inform you, that the desired functionality is currently not supported. Therefor, I would suggest you to set the RadAutoCompleteBox' width to a value, which would not be exceeded by any entry's text.

All the best,
Nencho
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
AutoCompleteBox
Asked by
Dan
Top achievements
Rank 1
Answers by
Nencho
Telerik team
Share this question
or