or

<div data-bind="source: Fields" data-template="field-template"></div><script id="field-template" type="text/x-kendo-template"> <div> <div data-bind="text: FieldName"></div> <button data-bind="events: { click: removeField }">Remove</button> </div></script>var SectionVM = function (section) { var self = this; this.Fields = []; if (section.Fields) { var fieldIndex = 0; $.each(section.Fields, function () { var field = this; var fvm = new FieldVM(field); // FieldVM is similar with this VM self.Fields.push(fvm); }); } this.removeField = function (e) {
var FieldIndex = self.get("Fields").indexOf(e.data); var removedItem = self.get("Fields").splice(FieldIndex, 1); } self = kendo.observable(this); return self;}var secVM = new SectionVM(someSection); // someSection it's an object comming from the server and matches the VM structurekendo.bind($(".section"), secVM); // .section is a div wrapping the div with the source binding
<div id="categorylist" data-role="view" data-title="Category List" data-layout="checklayout"> <ul data-role="listview" data-style="inset" data-type="group"> <li> Category List <ul> <li> <label> <input name="categorylistradio" type="radio" value="1" data-change="categoryswitch" /> <div style="height: 8px; width:8px; background: #67e667; border:1px; border-style:solid; float:left; margin-right: 3px; margin-top: 7px;"></div>Academic </label> </li> </ul> </li> </ul></div><script> function categoryswitch(e) { alert('test'); } kendo.init($("#categorylist"));</script>