Hi,
I have a listview component that uses a template like so:
$("#listView").kendoListView({
dataSource: _series,
template: kendo.template($("#template").html()),
selectable: true,
change: function() {
var index = this.select().index(),
dataItem = this.dataSource.view()[index];
}
}
<script type="text/x-kendo-tmpl" id="template">
<div class="listItem">
<input type="checkbox" value="#= id #"/>
</div>
</script>
What I would like is for the checkbox to fire the listview change event, instead of the listview itself. How do I accomplish this? Thanks.
Tonih
I have a listview component that uses a template like so:
$("#listView").kendoListView({
dataSource: _series,
template: kendo.template($("#template").html()),
selectable: true,
change: function() {
var index = this.select().index(),
dataItem = this.dataSource.view()[index];
}
}
<script type="text/x-kendo-tmpl" id="template">
<div class="listItem">
<input type="checkbox" value="#= id #"/>
</div>
</script>
What I would like is for the checkbox to fire the listview change event, instead of the listview itself. How do I accomplish this? Thanks.
Tonih