Problems with # character in mvvm template

2 posts, 0 answers
  1. Sebastiano
    Sebastiano avatar
    5 posts
    Member since:
    Oct 2010

    Posted 19 Jun 2014 Link to this post

    I'm having problems with a template rendering when it includes the # character in it. All other special characters seem to work without a problem.except for the numerical sign.

    http://jsbin.com/enutew/61/edit

    This fails to render:
        <script id="tmp" type="text/x-kendo-template">
              <div>
                   <label>#Value:</label>
                    <label data-bind="text:attribute"></label>
               </div>
        </script>

    While this renders fine:

        <script id="tmp" type="text/x-kendo-template">
              <div>
                   <label>Value:</label>
                    <label data-bind="text:attribute"></label>
               </div>
        </script>


    Thanks!






  2. Alexander Valchev
    Admin
    Alexander Valchev avatar
    2877 posts

    Posted 20 Jun 2014 Link to this post

    Hello Sebastiano,

    The "#" signs should be escaped as they are part of the Kendo Template syntax. Please check this help topic for more information.

    Regards,
    Alexander Valchev
    Telerik
     
    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
Back to Top