DropDown Auto Size

4 posts, 0 answers
  1. Mark
    Mark avatar
    127 posts
    Member since:
    May 2013

    Posted 18 Dec 2013 Link to this post

    Hi All,

    Can anyone please tell me how to auto-size the drop-down of a combobox in code-behind?  I have found the following link:
    http://www.telerik.com/help/aspnet-ajax/combobox-auto-width.html

    Ideally, both height and width would auto-adjust with the height maxing out at the bottom of the screen.  Is this at all possible?

    Thanks,
    Mark
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Dec 2013 Link to this post

    Hi Mark,

    Please have a look into the following code snippet to set the DropDownAutoWidth from the server side and check this help documentation for adjust the height property.

    C#:
    RadComboBox1.DropDownAutoWidth = Telerik.Web.UI.RadComboBoxDropDownAutoWidth.Enabled;

    Thanks,
    Shinu.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Wendy Prince
    Wendy Prince avatar
    2 posts
    Member since:
    May 2009

    Posted 19 Dec 2013 Link to this post

    Is this a feature of newer versions of Telerik?
  5. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 19 Dec 2013 Link to this post

    Hi Wendy Prince,

    RadComboBox DropDownAutoWidth is a Q1 2013 release version property. Please have a look into this online demo and help article.

    Thanks,
    Shinu.
Back to Top