or
<style scoped="scoped"> .info { display: block; line-height: 22px; padding: 0 5px 5px 0; color: #36558e; } #shipping { width: 482px; height: 152px; padding: 110px 0 0 30px; background: url('../content/autocomplete/shipping.png') transparent no-repeat 0 0; margin: 30px auto; } .k-autocomplete { width: 250px; vertical-align: middle; } .hint { line-height: 22px; color: #aaa; font-style: italic; font-size: .9em; color: #7496d4; } </style>

<ul id="books"></ul> <script id="template" type="text/x-kendo-template"> <li class="book"> <h3>#= title #</h3> by #= author # </li> </script> <script> $(document).ready(function() { function onChage() { $("#books").html(kendo.render(template, this.view())); } // create a template using the above definition var template = kendo.template($("#template").html()); var dataSource = new kendo.data.DataSource({ transport: { read: "filters.xml" }, schema: { // specify the the schema is XML type: "xml", data: "/Filters/Filter", model: { fields: { title: "title/text()", author: "@Id", url: "info/text()" } } }, change: onChage }); dataSource.read(); }); </script><?xml version="1.0"?>-<Filters> -<Filter Id="drwho"> <Collection>drwho</Collection> <Title>Favourite Doctor</Title> <Info>link_to_popup_info.html</Info> <Image>drwho.png</Image> </Filter> -<Filter Id="poo"> <Collection>poop</Collection> <Title>smell that?</Title> <Info>link_to_popup_info.html</Info> <Image>poop.png</Image> </Filter> </Filters>
@<div id="searchform"> <form method="get" action="@Href("~/Collection/Search")" class="search"> <ul> <li> <input type="text" name="q" value="@q" class="k-textbox" required /> </li> <li> <button class="k-button" id="search">Search</button> </li> </ul> </form> <div class="status"> </div> <script type="text/javascript"> $(document).ready(function () { var validator = $("#searchform").kendoValidator({ rules: { custom: function (input) { return input.val().length > 3; } }, messages: { custom: "You need 3 or more characters", required: "Oops, you forgot me!", email: function (input) { return getMessage(input); } } }).data("kendoValidator"); $("#search").click(function () { if (validator.validate() == false) { } }); }); </script></div><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <link href="../Styles/kendo.common.css" rel="Stylesheet" /> <link href="../Styles/kendo.default.css" rel="Stylesheet" /> <script src="../Scripts/kendo/jquery.min.js"></script> <script src="../Scripts/kendo/kendo.core.js"></script> <script src="../Scripts/kendo/kendo.data.js"></script> <script src="../Scripts/kendo/kendo.chart.js"></script></head><body> <div id="example" class="k-content"> <div> <div id="chart"></div> </div> <script type="text/javascript"> function createChart() { $("#chart").kendoChart({ theme: $(document).data("kendoSkin") || "default", dataSource: { transport: { read: { url: "test.json", dataType: "json" } }, sort: { field: "Program", dir: "asc" } }, title: { text: "Signup Count" }, legend: { position: "bottom" }, seriesDefaults: { type: "pie", labels: { template: "${ value } - ${ category }", visible: true } }, series: [{ field: "SignupCount", categoryField: "Program" }], tooltip: { visible: false } }); } $(document).ready(function () { setTimeout(function () { createChart(); // Initialize the chart with a delay to make sure // the initial animation is visible }, 400); $(document).bind("kendo:skinChange", function (e) { createChart(); }); }); </script> </div></body></html>MemoryStream stream = GPCO.JSON.Serialize(stats.Programs);string response = GPCO.Convert.BytesToUTF8(stream.GetBuffer());Response.Clear();Response.ContentType = "application/json";Response.Write(response);