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

Javascript Template Example In Overview doesn't work

3 Answers 57 Views
Templates
This is a migrated thread and some comments may be shown as answers.
Dave
Top achievements
Rank 2
Dave asked on 07 Feb 2013, 09:53 PM
Can someone point me to a functional jsFiddle or equivalent that has something like the example shown here: http://docs.kendoui.com/getting-started/framework/templates/overview  under External Templates and Expressions


Note the improper <ul> in the example, which to me is indicative of this not being code that was pasted from a successful running example.

Anyway, posting code snippets is not enough - post a link to a working example please : )

Thank You

DJM

3 Answers, 1 is accepted

Sort by
0
Petyo
Telerik team
answered on 08 Feb 2013, 09:17 AM
Hello David,

Thanks for pointing this out - we have updated the docs. You can browse our template demos for several live examples. 

All the best,
Petyo
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
0
Dave
Top achievements
Rank 2
answered on 08 Feb 2013, 01:55 PM
Thanks Petyo.

I looked at the examples and demos of templates. Then I came to the Template Overview because the demo didn't work. The same example has the same error in the demos and has not been fixed there as of my original post, FYI.

Here is working demo in a jsFiddle: http://jsfiddle.net/davidjmcclelland/Wr9jU/

I add a document.write() around the template(data)). 

A visual result is critical for novice learners! I thought template took care of writing out the html to the page. Am I wrong?

I suggest putting that in the example or something equivalent.

MAC
0
Alexander Valchev
Telerik team
answered on 12 Feb 2013, 05:18 PM
Hello Dave,

Thank you for the feedback.

You are right. We will update the code samples in the aforementioned help topic in a short period of time. The changes should be published on-line till the end of the week.

Best regards,
Alexander Valchev
the Telerik team
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
Templates
Asked by
Dave
Top achievements
Rank 2
Answers by
Petyo
Telerik team
Dave
Top achievements
Rank 2
Alexander Valchev
Telerik team
Share this question
or