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

Multiline Tooltip

1 Answer 246 Views
ToolTip
This is a migrated thread and some comments may be shown as answers.
Akhil Raj
Top achievements
Rank 1
Akhil Raj asked on 24 Mar 2013, 03:20 AM
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

1 Answer, 1 is accepted

Sort by
0
Marin Bratanov
Telerik team
answered on 25 Mar 2013, 03:55 PM
Hi,

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.
Tags
ToolTip
Asked by
Akhil Raj
Top achievements
Rank 1
Answers by
Marin Bratanov
Telerik team
Share this question
or