I am trying to bind to a list view, but with no luck, I have checked with fiddler that data contains an array and is populated correctly.
Where am I going wrong thanks
Where am I going wrong thanks
var vm = kendo.observable({ jobs: data });
kendo.bind($("#jobs-list"), vm);
<
ul
id
=
"job-ul"
data-role
=
"listview"
data-style
=
"inset"
data-type
=
"group"
data-template
=
"jobs-list-template"
data-bind
=
"source: jobs"
></
ul
>
<
script
type
=
"text/x-kendo-template"
id
=
"jobs-list-template"
>
<
li
class
=
"row job-list-item"
data-bind
=
"attr: {'data-job-id': JobId}"
>
<
h3
><
span
data-bind
=
"text: Property"
></
span
> <
span
data-bind
=
"text: LocationName"
></
span
></
h3
>
</
li
>
</
script
>