Hi
I've a datasource 'groups' in a viewmodel, which I bind to a kendo-listview.
No I want to bind that same datasource to a second simple ul-element, but unfortunately that doesn't seem to work. What am I doing wrong here?
All I get is a weird element inside the ul with some javascript in it.
I've a datasource 'groups' in a viewmodel, which I bind to a kendo-listview.
No I want to bind that same datasource to a second simple ul-element, but unfortunately that doesn't seem to work. What am I doing wrong here?
All I get is a weird element inside the ul with some javascript in it.
<ul id="groupViewSelect" data-bind="source: groups" class="dropdown-menu" data-auto-bind="false"></ul><script id="selectViewTemplate" type="text/x-kendo-tmpl"> <li><span data-bind="text: Name"></span></li></script>contactsGroupDataSource = new kendo.data.DataSource({ transport: { read: { url: "api/contactgroups" } }, schema: { model: { fields: { Number: { type: "integer" }, Name: { type: "string" } } } } });viewModel = kendo.observable({ groups: contactsGroupDataSource });