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

RadToolTip text to work with line feed "\n"

1 Answer 172 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Abhijit Shetty
Top achievements
Rank 2
Abhijit Shetty asked on 04 May 2012, 09:23 AM
Hi Team,

Can i have a line-break in RadToolTip to work with line-feed "\n" instaed of "<br/>"

1 Answer, 1 is accepted

Sort by
0
Accepted
Marin Bratanov
Telerik team
answered on 04 May 2012, 03:30 PM
Hi Abhijit,

The RadToolTIp takes an HTML string for its content, therefore the new lines must be configured for this environment. New line characters differ in many programming languages, yet usually a simple replace is sufficient to change line feeds and line breaks to <br /> tags. The replace() method in JavaSCript is a bit peculiar in the way that it replaces only the first occurrence, yet this  google search can get you started on various methods for performing a full replacements.


Kind regards,
Marin
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.
Tags
ToolTip
Asked by
Abhijit Shetty
Top achievements
Rank 2
Answers by
Marin Bratanov
Telerik team
Share this question
or