or
[{"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 worksresources: [ { field: "ownerId", title: "Owner", dataSource: [ { text: "Alex", value: 1, color: "#f8a398" }, { text: "Bob", value: 2, color: "#51a0ed" }, { text: "Charlie", value: 3, color: "#56ca85" } ] } ]resources: [ { field: "ownerId", title: "Owner", dataSource: { type: "json", transport: { read: { url: "/api/_Users?filter=(IsUser%20eq%201)", type: "GET" } }, schema: { parse: function(response) { var users = []; var inner = response.results; for (var i = 0; i < inner.length; i++) { var user = { text: inner[i].Attributes.FirstName, value: inner[i].Attributes.Id, color: "#ff0000" } } users.push(user); return users; } } } } ]