Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ComboBox > RadComboBox auto-width

Not answered RadComboBox auto-width

Feed from this thread
  • Tyson Nero avatar

    Posted on Oct 11, 2010 (permalink)

    Is auto-width supported for the RadComboBox? Is there a way to make it grow horizontally to the largest item in the select list?

    Reply

  • Posted on Oct 12, 2010 (permalink)

    Hello,


    If you want to resize the dropdown based on the item text length, then the following code library will help you
    Dynamic Dropdown width


    -Shinu.

    Reply

  • Chris McGrath avatar

    Posted on Mar 18, 2011 (permalink)

    Are there plans to make this a built-in feature?  Since the standard DropDownList control automatically sizes itself to the data in the dropdown, it makes sense that many people might want to mimic this behavior without creating code for every single combobox on a form.

    I would expect two properties:  One that autosizes the dropdown width, and one that autosizes the combo itself.

    I very much like some of the features of the telerik drop down, but hate that it takes so much work to make it work the way standard dropdowns do.

    PS. This code seems to far overcompensate for the text width when using Arial as the font (in both the control's skin and the TextWidth function).

    Reply

  • Helen Helen admin's avatar

    Posted on Mar 21, 2011 (permalink)

    Hello Chris,

    We've logged this feature. Our developers will consider implementing it in the future.

    Kind regards,
    Helen
    the Telerik team

    Reply

  • Steve avatar

    Posted on Aug 3, 2011 (permalink)


    DropdownWidth works

    Reply

  • Mike avatar

    Posted on Aug 31, 2011 (permalink)

    I second the request for an auto-width property.  I really dislike the look of word-wrapped combo box entries.  Like probably most developers, the contents of my combo boxes come from data in a database and I can't specify one width at design time that is going to look good in all cases.  And copying that c# code all over the application to calculate the width in the DataBound event is a huge hassle.

    Reply

  • Simon Simon admin's avatar

    Posted on Sep 1, 2011 (permalink)

    Hi Mike,

    We already have the 'drop down auto width' feature in our backlog and will implement it in future releases (an exact time frame is unavailable at the moment).

    Greetings,
    Simon
    the Telerik team

    Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

    Reply

  • Patrice Boissonneault avatar

    Posted on Sep 9, 2011 (permalink)

    +1 vote for this feature.

    Reply

  • Gint avatar

    Posted on Sep 14, 2011 (permalink)

    +1

    Reply

  • Dwight avatar

    Posted on Oct 10, 2011 (permalink)

    Would be very useful for me too + 1

    Reply

  • Tom Bruinsma avatar

    Posted on Nov 7, 2011 (permalink)

    +1, we went back to html selects because of this behavior.

    Reply

  • Alex Krusz avatar

    Posted on Nov 14, 2011 (permalink)

    rcbSlide will by default be as narrow as the dropdown selector's text; it does not expand horizontally to fit its content, so a horizontal scrollbar will be created if the dropdown item text is wide enough. This is fixable by manually setting rcbSlide's(minimum) size to be larger than its contents. This allows the content (rcbList,rcbScroll, rcbItem) to intelligently resize horizonally up to the width of rcbSlide.

    Here is my CSS fix for the problem.

    /* Allows radComboBox dropdowns to expand horizontally
       rather than use a scrollbar */
    .rcbSlide {
        width: 500px;
    }
     
    .rcbScroll .rcbWidth {
        min-width: 150px;
        width: auto;
    }
     
    .RadComboBoxDropDown {
        width: auto !important;
    }
     
    .rcbList {
        position: relative;
        width: auto;
    }

    Reply

  • JDP avatar

    Posted on Jan 26, 2012 (permalink)

    I vote for this as well. Spent 15 minutes of my time looking for what I thought would be a standard.

    Reply

  • App Visible avatar

    Posted on Feb 8, 2012 (permalink)

    Dear Alex,
    The solution work perfect in Firefox but doesn't work on IE.You have any fix for this.Thanks.

    Reply

  • Patrik Johansson Master avatar

    Posted on Mar 27, 2012 (permalink)

    Any news on this? Really want this feature as well

    +1

    Reply

  • Mike avatar

    Posted on Mar 27, 2012 (permalink)

    I'm still really wanting and needing this feature.  This issue came up today in a demo.

    Reply

  • Dwight avatar

    Posted on Mar 27, 2012 (permalink)

    I agree, it is definitely a big drawback of an otherwise excellent control

    Reply

Back to Top

Skip Navigation LinksHome / Community & Support / Developer Productivity Tools Forums / ASP.NET AJAX > ComboBox > RadComboBox auto-width
Related resources for "RadComboBox auto-width"

ASP.NET ComboBox Features  |  Documentation  |  Demos  |  Telerik TV  |  Self-Paced Trainer  |  Step-by-step Tutorial  ]