Height of autocomplete

2 posts, 0 answers
  1. Dan
    Dan avatar
    13 posts
    Member since:
    Nov 2009

    Posted 04 Apr 2013 Link to this post

    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.
  2. Nencho
    Admin
    Nencho avatar
    1458 posts

    Posted 09 Apr 2013 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top