RadComboBox auto-width

27 posts, 0 answers
  1. Tyson Nero
    Tyson Nero avatar
    5 posts
    Member since:
    Sep 2005

    Posted 11 Oct 2010 Link to this post

    Is auto-width supported for the RadComboBox? Is there a way to make it grow horizontally to the largest item in the select list?
  2. Shinu
    Shinu avatar
    17764 posts
    Member since:
    Mar 2007

    Posted 12 Oct 2010 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Chris McGrath
    Chris McGrath avatar
    23 posts
    Member since:
    Dec 2009

    Posted 18 Mar 2011 Link to this post

    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).
  5. Helen
    Admin
    Helen avatar
    1052 posts

    Posted 21 Mar 2011 Link to this post

    Hello Chris,

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

    Kind regards,
    Helen
    the Telerik team
  6. Steve
    Steve avatar
    11 posts
    Member since:
    Feb 2011

    Posted 03 Aug 2011 Link to this post


    DropdownWidth works
  7. Mike
    Mike avatar
    25 posts
    Member since:
    Aug 2010

    Posted 31 Aug 2011 Link to this post

    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.
  8. Simon
    Admin
    Simon avatar
    2281 posts

    Posted 01 Sep 2011 Link to this post

    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 >>

  9. Patrice Boissonneault
    Patrice Boissonneault avatar
    18 posts
    Member since:
    Mar 2010

    Posted 09 Sep 2011 Link to this post

    +1 vote for this feature.
  10. Gint
    Gint avatar
    9 posts
    Member since:
    Sep 2011

    Posted 14 Sep 2011 Link to this post

    +1
  11. Dwight
    Dwight avatar
    27 posts
    Member since:
    Aug 2011

    Posted 10 Oct 2011 Link to this post

    Would be very useful for me too + 1
  12. Tom Bruinsma
    Tom Bruinsma avatar
    3 posts
    Member since:
    Mar 2009

    Posted 07 Nov 2011 Link to this post

    +1, we went back to html selects because of this behavior.
  13. Alex Krusz
    Alex Krusz avatar
    3 posts
    Member since:
    Nov 2011

    Posted 14 Nov 2011 Link to this post

    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;
    }
  14. JDP
    JDP avatar
    14 posts
    Member since:
    Mar 2008

    Posted 26 Jan 2012 Link to this post

    I vote for this as well. Spent 15 minutes of my time looking for what I thought would be a standard.
  15. App Visible
    App Visible avatar
    6 posts
    Member since:
    Mar 2009

    Posted 08 Feb 2012 Link to this post

    Dear Alex,
    The solution work perfect in Firefox but doesn't work on IE.You have any fix for this.Thanks.
  16. Patrik Johansson
    Patrik Johansson avatar
    270 posts
    Member since:
    May 2010

    Posted 27 Mar 2012 Link to this post

    Any news on this? Really want this feature as well

    +1
  17. Mike
    Mike avatar
    25 posts
    Member since:
    Aug 2010

    Posted 27 Mar 2012 Link to this post

    I'm still really wanting and needing this feature.  This issue came up today in a demo.
  18. Dwight
    Dwight avatar
    27 posts
    Member since:
    Aug 2011

    Posted 27 Mar 2012 Link to this post

    I agree, it is definitely a big drawback of an otherwise excellent control
  19. chrisL
    chrisL avatar
    64 posts
    Member since:
    Dec 2005

    Posted 21 Jun 2012 Link to this post

    +1
  20. LM
    LM avatar
    2 posts
    Member since:
    Jul 2012

    Posted 18 Jul 2012 Link to this post

    +1

    This is a big minus, in some situations it's unusable without having the width dynamic.
  21. CCC
    CCC avatar
    1 posts
    Member since:
    Oct 2012

    Posted 31 Oct 2012 Link to this post

    +1
    This would be very useful. Please make this feature ready asap...
  22. brian
    brian avatar
    36 posts
    Member since:
    Jul 2010

    Posted 07 Nov 2012 Link to this post

    telerik?
  23. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 08 Nov 2012 Link to this post

    Hi,

    We have already logged the request for the auto-width feature for the RadComboBox control and we will be working on this feature during the current Q1 2013. Thank you all for the feedback and for voting for it. 

    All the best,
    Kate
    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.
  24. Karrie
    Karrie avatar
    12 posts
    Member since:
    Feb 2013

    Posted 03 Apr 2013 Link to this post



    Good to hear. 

    +1 for our team as well.
  25. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 08 Apr 2013 Link to this post

    Hello Karrie,

    Please refer to this demo and help article where you can find an example and more detailed information regarding the new functionality of the RadComboBox control that we recently implemented.

    Kind regards,
    Kate
    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.
  26. Aaron Abdis
    Aaron Abdis avatar
    24 posts
    Member since:
    Mar 2005

    Posted 30 Sep 2013 Link to this post

    another +1 for autowidth feature of the control itself (not the dropdown portion, i know that's already there)
  27. Somnath Kharat
    Somnath Kharat avatar
    1 posts
    Member since:
    Mar 2013

    Posted 01 Oct 2013 Link to this post

    I am also facing this problem .I used the Autowidth concept but its not working for me.

    I tried using this property 'DropDownAutoWidth="Enabled"

     
  28. Kate
    Admin
    Kate avatar
    1898 posts

    Posted 03 Oct 2013 Link to this post

    Hello,

    @Aaron: I will forward you request to our development team so that they can review it and possibly include it with the improvements of the control.

    @Somnath: Can you please open a separate forum post or a support ticket where you can provide more information on the specific scenario that you have as well as provide the version of the RadControls that you use? Thus, we can inspect the code that you have from our side and assist you in the most efficient way. 

    Regards,
    Kate
    Telerik
    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 the blog feed now.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017