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

RadTool Text Wrap not working

1 Answer 74 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Swati
Top achievements
Rank 1
Swati asked on 11 May 2012, 09:23 AM
My RadToolTip text is not wrapping even after setting Wrap="true" and also setting the width.

My tooltip text is been dynamically assigned.

I want my tooltip text to be displayed in new line once the content exceeds its limit. Mainly I want to wrap my text which not working and always the text is displayed in one single line covering the entire screen.

Code is as below

   <telerik:RadToolTip ID="rttReadMoreCustomText" runat="server" Skin="Windows7" TargetControlID="lnkReadMore" Position="Center"  ShowEvent="OnClick" HideEvent="ManualClose" ManualClose="True" ShowDelay="0" AutoCloseDelay="0" Visible="true" Width="100px" Wrap="true">
                <div style="width:300px;white-space:nowrap">
                   <asp:Label ID="lblReadMoreFullCustomText" style="" runat="server" class="Venue_general_font1 FontStyle4"  Font-Bold="true" />
             </div>
              
        </telerik:RadToolTip>

1 Answer, 1 is accepted

Sort by
0
Kevin
Top achievements
Rank 2
answered on 11 May 2012, 01:46 PM
Hello Swati,

I noticed that you have nowrap set on the div contained inside the div you have inside the RadTooltip. Also, the div's width is set to a size greater than the tooltip width, so it would never wrap even if you had wrapping enabled on the div.

I hope that helps.
Tags
ToolTip
Asked by
Swati
Top achievements
Rank 1
Answers by
Kevin
Top achievements
Rank 2
Share this question
or