Hi Petyo:
A hint would be appreciated...
The following crashes on jQuery apply. I do not think 'data' is derived from observable.
<
script
id
=
'officer-template2'
type
=
'text/x-kendo-template'
>
<
li
id
=
'#: id #'
data-bind
=
'events:{ mouseover: listener }'
><
h3
>#= title #</
h3
> <
div
>#= name #</
div
></
li
>
</
script
>
<
ul
id
=
"listView2"
class
=
"k-list-container"
style
=
"width: 200px;"
></
ul
>
<
script
type
=
'text/javascript'
>
$("#listView2").kendoListView({
dataSource: {
data: [{ id: 1, name: 'M. P.', title: 'President' },
{ id: 2, name: 'J. O. C.', title: 'Vice President' },
{ id: 3, name: 'P. H.', title: 'Treasurer' },
{ id: 4, name: 'B. M.', title: 'Webmaster' }],
},
template: kendo.template($('#officer-template2').html()),
selectable: "single",
listener: function (e) {
console.log("Event: "); // + e.type);
}
});
var listView2 = $("#listView2").data("kendoListView");
kendo.bind($("#listView2"), listView2.dataSource.data());
</
script
>
Phil