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

Template syntax causes simulator woes and data loss

1 Answer 23 Views
AppBuilder Windows client
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Kelly
Top achievements
Rank 1
Kelly asked on 08 Jan 2014, 11:02 PM
Hi:

I defined a template using a conditional expression, like this:

1.<script type="text/x-kendo-template" id="myTemplate">
2.    # if (canDo) { #
3.    <div data-role="touch" data-bind="events: { tap: dothis }">
4.    # } else { #
5.    <div data-role="touch" data-bind="events: { tap: dothat }">
6.    # } #


In Graphite, the div on line 5 produces an unmatched div error. No biggee, the code runs correctly.  However, after adding this code and saving, the simulator is no longer updated, and code changes made in the window are no longer saved.  If I make a change, then use Save, the window appears to be saved, and the Save menu option is dimmed, but the simulator is not updated. To get back to normal state, I have to close Graphite completely and reopen.  Changes made before the save are gone.  Thereafter, I am able to make changes and save without problems, even though the Code Analysis pane continues to show the "Expected </div>" error.

Thank you,

Kelly

1 Answer, 1 is accepted

Sort by
0
Kaloyan
Telerik team
answered on 13 Jan 2014, 04:43 PM
Hi Kelly,

I tried reproducing this on my side, unfortunately without success.

Is it possible for you to export a sample project and send it over for further investigation?

Thank you for the collaboration in advance.

Regards,
Kaloyan
Telerik
You've missed the Icenium Visual Studio Integration keynote? It has been recorded and posted here.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.
Tags
AppBuilder Windows client
Asked by
Kelly
Top achievements
Rank 1
Answers by
Kaloyan
Telerik team
Share this question
or