RadToolTip text to work with line feed "\n"

2 posts, 1 answers
  1. Abhijit Shetty
    Abhijit Shetty avatar
    36 posts
    Member since:
    May 2010

    Posted 04 May 2012 Link to this post

    Hi Team,

    Can i have a line-break in RadToolTip to work with line-feed "\n" instaed of "<br/>"
  2. Answer
    Marin Bratanov
    Marin Bratanov avatar
    3558 posts

    Posted 04 May 2012 Link to this post

    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,
    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. DevCraft R3 2016 release webinar banner
Back to Top