<!DOCTYPE html>
<html>
<head>
<title></title>
<script src="Scripts/jquery.min.js" type="text/javascript"></script>
<script src="Scripts/kendo.web.min.js" type="text/javascript"></script>
<link href="styles/kendo.common.min.css" rel="stylesheet" type="text/css" />
<link href="styles/kendo.default.min.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="example" class="k-content">
<div id="grid"> </div>
<script>
$(document).ready(function () {
$("#grid").kendoGrid({
dataSource: {
type: "odata",
serverPaging: false,
serverSorting: false,
pageSize: 1000,
transport: {
read: "http://demos.kendoui.com/service/Northwind.svc/Orders"
},
group: {
field: "ShipCity", aggregates: [
{ field: "OrderID", aggregate: "count" },
{ field: "CustomerID", aggregate: "count" },
{ field: "ShipName", aggregate: "count" },
{ field: "ShipCity", aggregate: "count" }
]
},
aggregate: [{ field: "OrderID", aggregate: "count" },
{ field: "CustomerID", aggregate: "count" },
{ field: "ShipName", aggregate: "count" },
]
},
height: 280,
scrollable: {
virtual: false
},
sortable: true,
groupable: true,
columns: [
{ field: "OrderID", aggregates: "count", groupHeaderTemplate: "OrderID: #= value # (Count: #= count#)" },
{ field: "CustomerID", aggregates: "count", groupHeaderTemplate: "CustomerID: #= value # (Count: #= count#)", footerTemplate: "Total Count: #=count#" },
{ field: "ShipName", title: "Ship Name", aggregates: "count", groupHeaderTemplate: "ShipName: #= value # (Count: #= count#)" },
{ field: "ShipCity", title: "Ship City", aggregates: "count", groupHeaderTemplate: "ShipCity: #= value # (Count: #= count#)" }
],
databound: function () {
$("#grid").find(".k-icon.k-collapse").trigger("click");
}
});
});
</script>
</div>
</body>
</html>

<div data-role="view" id="doc-Image" data-layout="default-layout" data-title="Report" > <img id="doc-Image-DocumentImage" alt="Document Type" src="../Report/1" style="width: 100%;"/></div>$("#test").click(function(e){ alert('inside click');});$("#treeView").kendoTreeView({ dataSource: [ { category: "A", nodes: [{name:"Node 1"}, {name:"Node 2"}]} ]});<script id="treeview-template" type="text/kendo-ui-template"> # if (item.category) { # #= item.category # # } # // How do I now tell it to render the "nodes" element as children to the category element?</script>