or
$("#quantity").focus();var quantityBox = $("#quantity").kendoNumericTextBox({ min: 1, format: "#.00 units", change: function(e){ fromCombo.input.focus(); fromCombo.open(); } }).data("kendoNumericTextBox");<button id="moveButton" class="k-button"><img />Move</button><button id="viewXML"><img /></button>#moveButton img, #viewXML img{ content: ""; float: left; width: 16px; height: 16px; margin: 5px 5px 0 0; background-image: url('images/SpritesSmall.png'); background-position: -70px center;}$("#viewXML").kendoDropDownList([{ text: "Option 1", value: "1" }, { text: "Option 2", value: "2"}]);$("#viewXML").data("kendoDropDownList").text("View XML")
/* Initialize panel bars */ $("#panelbar1").kendoPanelBar().data("kendoPanelBar"); $("#panelbar2").kendoPanelBar().data("kendoPanelBar"); $("#panelbar3").kendoPanelBar().data("kendoPanelBar"); $("#panelbar4").kendoPanelBar().data("kendoPanelBar"); $("#panelbar5").kendoPanelBar().data("kendoPanelBar"); $("#panelbar6").kendoPanelBar().data("kendoPanelBar"); $("#panelbar7").kendoPanelBar().data("kendoPanelBar"); $("#panelbar8").kendoPanelBar().data("kendoPanelBar"); $("#panelbar9").kendoPanelBar().data("kendoPanelBar"); $("#panelbar10").kendoPanelBar().data("kendoPanelBar"); $("#panelbar11").kendoPanelBar().data("kendoPanelBar"); /* expand/collapse panel */ $(".triggerItem").click(function (e) { var target = this; var panelbar = '#' + target.element.context.id; var item = $( panelbar ).select(); if (item.hasClass("k-state-active")) { $( panelBar ).collapse(item); } else { $( panelBar ).expand(item); } }); // Collapse all the sections in the panel $('.p-collapse').click(function (e) { var elementId = this.id; var target = '#panelbar' + elementId.substring(0, elementId.length - 6) ; var panelBar = $( target ), clone = $( target ).clone(true); panelBar.data( "kendoPanelBar" ).collapse( target + ' k-link' ); panelBar.replaceWith( clone ); $(target).kendoPanelBar(); });
<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);