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

Problems with # character in mvvm template

1 Answer 68 Views
MVVM
This is a migrated thread and some comments may be shown as answers.
Sebastiano
Top achievements
Rank 1
Sebastiano asked on 19 Jun 2014, 07:24 PM
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!






1 Answer, 1 is accepted

Sort by
0
Alexander Valchev
Telerik team
answered on 20 Jun 2014, 08:35 AM
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!
 
Tags
MVVM
Asked by
Sebastiano
Top achievements
Rank 1
Answers by
Alexander Valchev
Telerik team
Share this question
or