or
<div id="listView"></div><script type="text/x-kendo-template" id="template"> Category name: #=categoryName#, GL Code : #=glCode#<br><br></script><script> $(function() { var dataSource = new kendo.data.DataSource({ transport: { read: { url: "@routes.Assets.at("data/glcodes.json")" , dataType: "json" } } }); $("#listView").kendoListView({ dataSource: dataSource, template: kendo.template($("#template").html()) }); });</script>Category name: One, GL Code : 11111 Category name: Two, GL Code : 22222 Category name: Three, GL Code : 33333 Category name: Four, GL Code : 44444 Category name: Five, GL Code : 55555 Category name: Six, GL Code : 66666 Category name: Seven, GL Code : 77777 Category name: Eight, GL Code : 88888Category name: #=categoryName#, GL Code : #=glCode#<br><br>[{"Key":"M12","Name":"Event Protection","HasChildren":true,"NodeType":"Domain"},{"Key":"M13","Name":"Event Protection from 594","HasChildren":true,"NodeType":"Domain"}, ... ]var tree = $('#treeview').kendoTreeView({ dataSource : getDefinitions(), dataTextField : "Name", dataSpriteCssClassField : "NodeType", select : function (e) { var id = this.dataItem(e.node).id; onChange(id); }#treeview .k-sprite { background-image: url("../../internal/images/treeview-sprites.png");}.TextItem { background-position: 0px 0px; no-repeat top left; width: 16px; height: 16px; } ....Domain { background-position: 0px -364px; no-repeat top left; width: 16px; height: 16px; } ...<div class="swipe-overlay" data-role="touch" data-enable-swipe="true" data-swipe="on_swiped"></div>
@(Html.Kendo().Window() .Name("window") .Content(@<text> <p> Blah Blah </> </text>) .Width(540) .Height(480) .Visible(false) )var kendoWindow = $("#window"); $("#openEmail").click(function (e) {
??????? kendoWindow.data("kendoWindow").open(); }); $("#openBox").click(function (e) {
??????? kendoWindow.data("kendoWindow").open(); }); $("#openDesk").click(function (e) {
?????? kendoWindow.data("kendoWindow").open(); }); $("#window").click(function (e) { kendoWindow.data("kendoWindow").close(); });// Inside my viewconfig: { a: "A", b: "B"},foo: function(data) { return this.config[data.config]; },initGrid: function() { this.ui.grid.kendoGrid({ columns: [{ title: "Column A", field: "columnA", template: "#= this.foo(data) #" }] });}// Direct function accesstemplate: this.foo// Set scope of template executiontemplate: { template: "#= this.foo(data) #", scope: this }// Templates always executed in scope they are defined intemplate: "#= this.foo(data) #" // Just works