How to set Maximum Dropdown Height

3 posts, 1 answers
  1. Jeremy
    Jeremy avatar
    96 posts
    Member since:
    Mar 2010

    Posted 23 Aug 2012 Link to this post

    There is a DropDownHeight property that sets the height of the dropdownlist. How do I make this work like the MaxHeight property of the RadCombobox? It looks ridiculous with 1 entry with a large size set (eg 300px). If I allow the autocompletebox to resize the dropdownlist by itself, then its fine with a few records, but it scrolls off the page when many records match the filter.
  2. Answer
    Ivana
    Admin
    Ivana avatar
    657 posts

    Posted 24 Aug 2012 Link to this post

    Hi Jeremy,

    The following CSS will set a max height to the drop-down list of RadAutoCompleteBox:
    .RadAutoCompleteBoxPopup_Default, .RadAutoCompleteBoxPopup .racList {
         max-height: 100px !important;
    }
    (_Default is for the Skin being used by the control.)

    I hope this will help.

    Kind regards,
    Ivana
    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
  4. Jeremy
    Jeremy avatar
    96 posts
    Member since:
    Mar 2010

    Posted 26 Aug 2012 Link to this post

    That works fantastically, Thanks!
Back to Top