This is a migrated thread and some comments may be shown as answers.

Rad Link Button Text

3 Answers 224 Views
Button
This is a migrated thread and some comments may be shown as answers.
Mark
Top achievements
Rank 1
Mark asked on 28 Feb 2012, 04:18 PM
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.

Regards,

Mark

3 Answers, 1 is accepted

Sort by
0
Accepted
Slav
Telerik team
answered on 01 Mar 2012, 01:20 PM
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">
    .rbLinkButton
    {
        height: auto !important;
    }
</style>

Regards,
Slav
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.
0
Mark
Top achievements
Rank 1
answered on 02 Mar 2012, 09:53 AM
Thanks
0
Scott
Top achievements
Rank 1
answered on 10 Jul 2012, 04:22 PM
Hi is there something similar that could be done for StandardButton types?

Thanks

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 
Tags
Button
Asked by
Mark
Top achievements
Rank 1
Answers by
Slav
Telerik team
Mark
Top achievements
Rank 1
Scott
Top achievements
Rank 1
Share this question
or