ComboBox DropDown Width

4 posts, 1 answers
  1. Senthil ramna
    Senthil ramna avatar
    67 posts
    Member since:
    Mar 2010

    Posted 25 Aug 2010 Link to this post

    I am using Radcombobox version 2009.1.311.35.
    In this i wanted to increase the dropdown width as some of the text were of larger length, so i set the DropDownWidth size to 240px and the width of my ComboBox is 150px (standard i am using in all my pages).
    The question is this how can i make sure that the DropDownWidth will increase and decrease itself based on the size of the Items in the list. I found this http://www.telerik.com/help/winforms/combo_propertiessizing.html which looks pretty cool, where i can set the maximum and minimum DroDownSIze for the ComboBox, but this is for winforms.
    Can you tell me how i can achieve the same for ASP.NET AJAX ComboBox.
  2. Steve
    Steve avatar
    1885 posts
    Member since:
    Dec 2008

    Posted 28 Aug 2010 Link to this post

    Hmmm, it might be hard...never tried it myself actually....especially with those older control versions...but it renders (at least now anyway) as Divs and ULs...so some clever CSSing probably could do it on the DropDown class somewhere...
  3. Answer
    Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 30 Aug 2010 Link to this post

    Hello Senthil,


    I found a code library regarding how to set the DropDownWidth according to content. I hope this would help you.
    Dynamic Dropdown width


    -Shinu.
  4. Senthil ramna
    Senthil ramna avatar
    67 posts
    Member since:
    Mar 2010

    Posted 31 Aug 2010 Link to this post

    Guys thanks for the response.
    Thanks Shinu i tried the code library and customized it, it worked like a charm.

Back to Top