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

Binding Array to HTML Element and Template

1 Answer 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Rodenberg
Top achievements
Rank 1
Rodenberg asked on 06 Feb 2014, 11:29 AM
Hello,

how do i bind an array in my js code to a html ul element.

This is my element: 
<ul id="attendees"></ul>

this is my template:
<script type="text/x-kendo-tmpl" id="tml_attendees">
     <img src="${url}">
</script>

i dont want to use an kendoMobileListView


1 Answer, 1 is accepted

Sort by
0
Kiril Nikolov
Telerik team
answered on 06 Feb 2014, 11:50 AM
Hello Philip,

You can implement this with a standard source binding and MVVM for Kendo UI Mobile application. Please read more about source binding and MVVM in mobile app.

Here is a simple example as well:

http://jsbin.com/hibo/1/edit

Regards,
Kiril Nikolov
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
General Discussions
Asked by
Rodenberg
Top achievements
Rank 1
Answers by
Kiril Nikolov
Telerik team
Share this question
or