I am new to kendo UI implementation and am looking for a way to create a listview with checkbox, the very first checkbox being All Option to select all items in listview if it is checked. I have created a template that allows me to add checkbox to the items, But i need to add a ALL checkbox on top of all the data. this is what i have worked in so far, Below (screenshot) is what i would like to achieve.
Here is my template:
<script type="text/x-kendo-tmpl" id="myTemplate">
<div class="item click" data="${ProductID}">
<input type="checkbox" class="click" />
<span class="checkbox">#:ProductName#</span>
</div>
</script>
I think you are looking for a treeview. See the demo from kendo
http://demos.kendoui.com/web/treeview/checkboxes.html
Your code seem like this: http://jsfiddle.net/Archie/w6jsZ/
//UPDATE
To get check-box values:
Make sure your list was wrapped by
"form"
tagAll
input
tag have thesame name
Go get values you can use serialize method of jquery:
If your input :
When you call
getCheckedBoxValue
, result will like this: