Multiline Tooltip

2 posts, 0 answers
  1. Akhil Raj
    Akhil Raj avatar
    69 posts
    Member since:
    Aug 2012

    Posted 23 Mar 2013 Link to this post

    hi i need multiline in tool tip. How acn i achieve. In general tool i wrote like below and working fine

    Label1.ToolTip = string.Format("Username : {1}{0}Age : {2}{0}Place : {3}", Environment.NewLine, username, age, place)

    When i added Tooltip manager this shows as single sentence
  2. Marin Bratanov
    Marin Bratanov avatar
    3555 posts

    Posted 25 Mar 2013 Link to this post


    RadTooltip renders as an HTML element, so you need to use an HTML new line symbol and not the symbol from the code-behind language. The entire text RadToolTip takes can be an HTML string and you can, alternatively, add controls to it. More on that is available here. FOr your string you would need a <br /> tag:
    Label1.ToolTip = string.Format("Username : {1}{0}Age : {2}{0}Place : {3}", "<br />", username, age, place)

    All the best,
    Marin Bratanov
    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