Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1405
Formatted ToolTipText Showing Raw
posted

Is there any reason why the tooltip text wouldn't be formatted?

I'm using  the Infragistics.Win.ToolTipInfo class for this and for whatever reason the tooltips often come in unformatted.

ie:

"<b>Header</b> " + someVar + " at " + someVar2 + "<br/>" + ....

 

Will come in as: <b>Header</b> 200 at 40.00<br/>...

 

Any help is much appreciated. Thanks!

  • 48586
    posted

    Hello,

     

    I am just checking about the progress of this issue. Did you solve your issue accordingly to the information that Michael provided you?

     

    Let me know if you need any further assistance.

  • 469350
    Suggested Answer
    Offline posted

    What control are you using? Where are you getting the ToolTipInfo from?

    There are two reasons I can think of why this might happen:

    1) The ToolTipTextStyle on your ToolTipInfo is set to Raw or Default (and not Formatted).

    2) The XML string you are passing in is invalid. If you are missing a tag or the XML is not properly formed for any reason, the tooltip won't be able to parse it, and it will fall back to displaying the raw text.