Rad Link Button Text

4 posts, 1 answers
  1. Mark
    Mark avatar
    9 posts
    Member since:
    Feb 2012

    Posted 28 Feb 2012 Link to this post

    I have a RadButton in an ItemTemplete with the button type set to link. If the text in the button is too long it wraps outside of the control.

    This can be reproduced on the button demo on this site (see attached screen shot)

    The text is set dynamically on my page and could contain multiple lines of text, so I need the button to expand as needed.

    Any help or tips welcome.


  2. Answer
    Slav avatar
    1355 posts

    Posted 01 Mar 2012 Link to this post

    Hi Mark,

    Please add the following code snippet in the head section of your page. It will ensure that the height of your RadButton is set according to its content when it is configured as a LinkButton and there is not enough width on your page for the button control to be displayed.
    <style type="text/css">
            height: auto !important;

    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. Mark
    Mark avatar
    9 posts
    Member since:
    Feb 2012

    Posted 02 Mar 2012 Link to this post

  5. Scott
    Scott avatar
    5 posts
    Member since:
    Jun 2012

    Posted 10 Jul 2012 Link to this post

    Hi is there something similar that could be done for StandardButton types?


    EDIT: Never mind, I read the height and width post and found my answer: http://www.telerik.com/community/forums/aspnet-ajax/button/width-and-height-support-for-radbutton.aspx 
Back to Top