or
$(document).ready(function () { var viewModel = kendo.observable({ email: "someemail@somesite.com", password: "p@ssword", passwordConfirmation: "p@ssword", confirmed: false, register: function (e) { e.preventDefault(); this.set("confirmed", true); }, startOver: function () { this.set("confirmed", false); this.set("email", false); this.set("password", "Male"); this.set("passwordConfirmation", "John"); } }); kendo.bind($("#example"), viewModel); });<div id="example" class="k-content"> <div id="loginForm"> <div id="description"> <p>Some Text</p> </div> <div id="login"> <h2> Want us to get in touch with you</h2> <br /> <form> <label> Email: <input data-bind="value: email" /></label> <br /> <br /> <label> Password: <input data-bind="value: password" /></label> <br /> <br /> <label> Confirmation: <input data-bind="value: passwordConfirmation" /></label> <br /> <br /> <button data-bind="enabled: agreed, click: register"> Register</button> <br /> <div data-bind="visible: confirmed"> <h4> Confirmation</h4> <div> Thank you for your registration, <span data-bind="text: email"></span> <br /> <br /> <button data-bind="click: startOver"> Start Over</button> </div> </div> </form> </div> </div></div> $("#myList").kendoGrid({
dataSource: mySource
columns: [
{ field: "SupplierName", title: "Vendor Name:" },
{ field: "ColorCode", title: "Vendor Status", template: '<div style="width: 50px; height:20px; background-color: #FF16DC04">#= ColorCode #</div>'}]
});<!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head> <title></title> <link href="styles/kendo.common.min.css" rel="stylesheet" type="text/css" /> <link href="styles/kendo.default.min.css" rel="stylesheet" type="text/css" /> <script src="js/jquery.min.js" type="text/javascript"></script> <script src="js/kendo.web.min.js" type="text/javascript"></script></head><body> <div id="grid"></div> <script> $(document).ready(function () { var myDatasource = new kendo.data.DataSource({ transport: { read: { dataType: "json", data: { access_token: "pJqsseeESsdfse-d9_8CMQPsLg2" }, beforeSend: function (req) { req.setRequestHeader('Accept', "application/json"); } } }, schema: { data: "customers.customer" } }) $("#grid").kendoGrid({ dataSource: myDatasource }); }); </script></body></html><select name="select1" id="select1"> <option value="">-- select --</option> <option value="1">One</option> <option value="2">Two</option></select>