or
<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head id="Head1" runat="server"> <title></title> <link rel="Stylesheet" href="search.css" type="text/css" /> <link href="examples-offline.css" rel="stylesheet"> <link href="kendo.common.min.css" rel="stylesheet"> <link href="kendo.default.min.css" rel="stylesheet"> <script src="jquery.min.js"></script> <script src="kendo.web.min.js"></script> <script src="console.js"></script></head><body> <form id="form1" runat="server"> <div class="content"> <div class="menuholder"> <div class="menu"></div> </div> <div class="holder"> <div class="params"> <div id="rangeslider" class="humidity"> <input /> <input /> </div> </div> <div class="vspacer"></div> <div class="display"> <div id="example" class="k-content"> <div id="listView"></div> <script type="text/x-kendo-tmpl" id="template"> <div class="product"> <img src="myimg.jpg" alt="${ProjectName} image" /> <h3>${ProjectName}</h3> <div class="edit-buttons"> <a class="k-button k-button-icontext k-update-button" href="\\#">Btn1</a> <a class="k-button k-button-icontext k-cancel-button" href="\\#">Btn2</a> </div> </div> </script> <script> $(document).ready(function() { var dataSource = new kendo.data.DataSource({ transport: { read: { url: "jsonfile.json", dataType: "json" } }, filter: { logic: "or", filters: [ {field: "ProjectName", operator: "startswith", value: "C" }, {field: "ProjectName", operator: "startswith", value: "A" } ] }, }); $("#listView").kendoListView({ dataSource: dataSource, selectable: "multiple", template: kendo.template($("#template").html()) }); $(".k-add-button").click(function(e) { listView.add(); e.preventDefault(); }); $("#rangeslider").kendoRangeSlider({ min: 0, max: 10, smallStep: 1, largeStep: 2, tickPlacement: "both" }); }); </script></div> </div> </div> </div> </form></body></html>
var draggable = $('#resultGrid .k-grid-header thead').data('kendoDraggable'); /
draggable.bind("dragend", function (e) {
///
});
_draggable: function() {
... filter: ".k-header:not(.k-group-cell,.k-hierarchy-cell)"
...
},var dataSource = newkendo.data.DataSource({ transport: { read: { url: window.stpURL + "/GetClusterStoresTable", dataType: "xml", data: { action: 'fetch', id: function() { return window.selectedFolderNodeID; } } } }, schema: { type: "xml", data: "/TABLE/STORES", model: { fields: fields } }, error: raiseXmlDsErrorWindow});@{ ViewBag.Title = "Home Page";}<script id="contact-template" type="text/x-kendo-template"> <div class="mm-contact"> <span class="mm-title" data-bind="text: Title"></span><br /> <span data-bind="text: FirstName"></span> <span data-bind="text: LastName"></span><br /> Extension: <span data-bind="text: Extension1"></span><br /> mail: <span data-bind="text: Email"></span> </div></script><div id="ProductSales" data-role="view" data-model="vm" data-layout="default" data-title="Product Sales"> <header data-role="header"> <div data-role="navbar">Product Sales</div> </header> <div id='lv' data-role="listview" data-bind="source: productSalesContacts" data-template="contact-template"></div></div><script type="text/javascript"> var Staff = kendo.data.Model.define({ id: "ID", fields: { // data type of the field {Number|String|Boolean|Date} default is String ID: { type: "Numeric", editable: false, nullable: true }, LastName: { type: "String", validation: { required: true } }, FirstName: { type: "String", validation: { required: true } }, Title: { type: "String" }, City: { type: "String" }, State: { type: "String" }, Email: { type: "String" }, Phone1: { type: "String" }, Extension1: { type: "String" }, Sequence: { type: "Numeric", nullable: true } } }); var vm = kendo.observable({ productSalesContacts: new kendo.data.DataSource({ transport: { read: { url: "/Services/Contacts.asmx/ProductSales", dataType: "json", type: "POST", contentType: "application/json; charset=utf-8" }, }, schema: { data: "d", model: Staff } }) });</script>@{ ViewBag.Title = "Home Page";}<script id="contact-template" type="text/x-kendo-template"> <div class="mm-contact"> <span class="mm-title" data-bind="text: Title"></span><br /> <span data-bind="text: FirstName"></span> <span data-bind="text: LastName"></span><br /> Extension: <span data-bind="text: Extension1"></span><br /> mail: <span data-bind="text: Email"></span> </div></script><div id="ProductSales" data-role="view" data-model="vm" data-layout="default" data-title="Product Sales"> <header data-role="header"> <div data-role="navbar">Product Sales</div> </header> <div id='lv' data-role="listview" data-bind="source: productSalesContacts" data-template="contact-template"></div></div><script type="text/javascript"> var Staff = kendo.data.Model.define({ id: "ID", fields: { // data type of the field {Number|String|Boolean|Date} default is String ID: { type: "Numeric", editable: false, nullable: true }, LastName: { type: "String", validation: { required: true } }, FirstName: { type: "String", validation: { required: true } }, Title: { type: "String" }, City: { type: "String" }, State: { type: "String" }, Email: { type: "String" }, Phone1: { type: "String" }, Extension1: { type: "String" }, Sequence: { type: "Numeric", nullable: true } } }); var vm = kendo.observable({ productSalesContacts: new kendo.data.DataSource({ transport: { read: { url: "/Services/Contacts.asmx/ProductSales", dataType: "json", type: "POST", contentType: "application/json; charset=utf-8" }, }, schema: { data: "d", model: Staff } }) });</script>