issue with nbsp in axis title

4 posts, 1 answers
  1. Boris Gheihman
    Boris Gheihman avatar
    12 posts
    Member since:
    May 2007

    Posted 07 May 2015 Link to this post

    Since there is no way to center align text I was using non-braking spaces for this task. It wasn't perfect but it worked(at least in version 2014.3.1316). I've tried to update to latest 2015.1.429 version recently and discovered that titles with nbsp in it are completely broken. Here is an example.
  2. Answer
    T. Tsonev
    Admin
    T. Tsonev avatar
    2817 posts

    Posted 11 May 2015 Link to this post

    Hello Boris,

    The change that leads to this behavior is that we now HTML-encode texts. We do this as SVG is not our only rendering target - we support Canvas and PDF as well. These will output the encoded text as they don't have a notion for HTML entities. If we don't encode the text we'll get different results, e.g. during PDF export.

    What we suggest instead is to use visual templates for the labels. In combination with the Layout primitive we can produce the same results and much more.

    I've prepared a snippet to demonstrate your particular case. Does this make sense?

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
  3. Boris Gheihman
    Boris Gheihman avatar
    12 posts
    Member since:
    May 2007

    Posted 11 May 2015 in reply to T. Tsonev Link to this post

    I wasn't aware of this new "visual templates" feature. I think it will resolve this issue. Thank you for the provided dojo very much.
  4. T. Tsonev
    Admin
    T. Tsonev avatar
    2817 posts

    Posted 13 May 2015 Link to this post

    Hello,

    Welcome. I'm glad this worked out for you.

    Regards,
    T. Tsonev
    Telerik
     
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
     
Back to Top