How to use non-ascii characters in templates?

7 posts, 1 answers
  1. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 23 Jan 2013 Link to this post

    I need to use characters like "plus minus" or "lambda" symbols, and I would normally use ± and λ, but those key references simply display like that, and not encoded as the characters. 

    Does anyone know how I can get these types of characters into a template?  I'll be populating the template from JSON data.

    Thanks,

    King Wilder
  2. Answer
    Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jan 2013 Link to this post

    Hello King,

     You need to use #= # instead of #: # in such cases. More info can be found in the Kendo Templates documentation.

    Regards,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  3. Kendo UI is VS 2017 Ready
  4. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 24 Jan 2013 Link to this post

    Atanas,

    Yup that worked!

    I was using:
    <div class="optics-description">${description}</div>
    What are the differences between the two options, ${...} adn #= ... # and when do I use one over the other?

    Thanks,

    King Wilder
  5. Atanas Korchev
    Admin
    Atanas Korchev avatar
    8462 posts

    Posted 24 Jan 2013 Link to this post

    Hi,

     The differences are explained in the linked help topic. The ${} is the same as #: #.

    Greetings,
    Atanas Korchev
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  6. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 25 Jan 2013 Link to this post

    Atanas,

    I read the documentation twice and didn't see a reference to the ${...} syntax.  Am I blind or is it not there?

    Thanks,

    King Wilder
  7. Petyo
    Admin
    Petyo avatar
    2439 posts

    Posted 26 Jan 2013 Link to this post

    Hello King,

    The ${} is a deprecated template syntax - that is why it is not mentioned in the documentation. 

    Greetings,
    Petyo
    the Telerik team
    Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
  8. King Wilder
    King Wilder avatar
    240 posts
    Member since:
    Oct 2007

    Posted 26 Jan 2013 Link to this post

    Petyo,

    Ah, ok I understand.  I'll remember to use #= # or #: # from now on.

    Thanks,

    King Wilder
Back to Top
Kendo UI is VS 2017 Ready