or
<meta name="viewport" content="minimal-ui" /><!DOCTYPE html><html><head> <meta name="viewport" content="minimal-ui" /> <style>html { font-size: 12px; font-family: Arial, Helvetica, sans-serif; }</style> <title></title> <link href="http://cdn.kendostatic.com/2014.1.318/styles/kendo.common.min.css" rel="stylesheet" /> <link href="http://cdn.kendostatic.com/2014.1.318/styles/kendo.default.min.css" rel="stylesheet" /> <link href="http://cdn.kendostatic.com/2014.1.318/styles/kendo.mobile.all.min.css" rel="stylesheet" /> <script src="http://cdn.kendostatic.com/2014.1.318/js/jquery.min.js"></script> <script src="http://cdn.kendostatic.com/2014.1.318/js/kendo.all.min.js"></script></head><body> <div data-role="view" data-layout="layout" data-show="layoutShow" id="layoutView"> <p> This examples shows the platform specific layouts. Change the OS to see how the header and footer changes. </p> <p> With Kendo Mobile version 2014.1.318, I'm using the following meta tag to get rid of Mobile Safari's toolbars in iOS7.1 (iPhone 4): </p> <p> <code><meta name="viewport" content="minimal-ui" /></code> </p> <p> Changing orientation from portrait to landscape with this meta tag in place leaves the bottom part of the screen unused or, in other words, messes up the view's scroll position so that the top part of the screen gets hidden and "blank" content is shown at the bottom of the page. </p></div><div data-role="layout" data-id="layout" data-platform="ios"> <header data-role="header"> <div data-role="navbar"> <a data-align="right" data-role="button" class="nav-button" href="#/">Index</a> <span data-role="view-title">iOS Platform</span> </div> </header> <footer data-role="footer"> <div data-role="tabstrip"> <a data-icon="contacts">Profile </a><a data-icon="settings">Settings</a> </div> </footer></div><div data-role="layout" data-id="layout" data-platform="android"> <header data-role="header"> <div data-role="navbar"> <span data-role="view-title">Android Platform</span> <a data-align="right" data-role="button" class="nav-button" href="#/">Index</a> </div> </header> <footer data-role="footer"> <div data-role="tabstrip"> <a data-icon="history">Sales</a> <a data-icon="settings">Settings</a> </div> </footer></div><div data-role="layout" data-id="layout" data-platform="blackberry"> <header data-role="header"> <div data-role="navbar"> <a data-align="right" data-role="button" class="nav-button" href="#/">Index</a> <span data-role="view-title">BlackBerry platform</span> </div> </header> <footer data-role="footer"> <div data-role="tabstrip"> <a data-icon="favorites">Rating</a> <a data-icon="settings">Settings</a> </div> </footer></div><div data-role="layout" data-id="layout" data-platform="wp"> <header data-role="header"> <div data-role="navbar"> <a data-align="right" data-role="button" class="nav-button" href="#/">Index</a> <span data-role="view-title">Windows Phone platform</span> </div> </header> <footer data-role="footer"> <div data-role="tabstrip"> <a data-icon="home">Home</a> <a data-icon="globe">Global</a> </div> </footer></div><style scoped> #layoutView .km-view-title { visibility: inherit; } .km-android #layoutView .km-view-title { display: block; position: static; }</style><script> var app = new kendo.mobile.Application(document.body);</script></body></html>startpicker.setOptions({ format: "MMMM, yyyy", value: startPickerValue.getMonth(), month: { content: "<div style='background-color:#= data.date < ($('#startDatePicker').data('kendoDatePicker').max()) > ? 'cyan' : 'lightgray' #'>#=data.value#</div>" } });​var app = angular.module('myApp', ["kendo.directives"]);
app.controller('MyController', function ($scope) {
$scope.gridOptions = {
// standard grid initialisation
}
var grid = $("#grid"); grid.on("dblclick", "tr.k-state-selected td", function () { var $this = $(this); grid.data("kendoGrid").editCell($this); $this.focusout(function(){ // for input elements that use widgets they will lose focus when the widget is rendered
// so we need to rebind the foucsout to the widget var $widget = $('.k-widget', $this); if ($widget.length == 0) { if(!$(".k-grid-edit-row input").hasClass("k-invalid")){ //console.log('focusout'); $("#grid").data("kendoGrid").closeCell(); } }else{ //console.log('widget editing'); $widget.focusout(function() { //console.log('widget focusout'); if(!$(".k-grid-edit-row input").hasClass("k-invalid")) { $("#grid").data("kendoGrid").closeCell(); $widget.off('focusout'); } }); } }); });
}<div id="grid" data-role="grid" data-sortable="true" data-editable="false"data-navigatable="true" data-resizable="true" data-reorderable="true"data-pageable="{numeric: true, buttonCount: 5, previousNext: true, info: true}" data-selectable="True"data-columns='[{"field": "LoadDisplayId", "title": "Load Id", "width": "80px"}, {"field": "BeginDate", "title": "Start Date", "width": "80px", "format": "{0:MM/dd/yyyy}"}, {"field": "EndDate", "title": "End Date", "width": "80px", "format": "{0:MM/dd/yyyy}"},{"field": "RouteName", "title": "Route Identifier", "width": "100px"},{"field": "Origin", "title": "Origin", "width": "200px"},{"field": "Destination", "title": "Destination", "width": "200px"},{"field": "BillTo", "title": "BillTo", "width": "200px"},{"field": "Carrier", "title": "Carrier", "width": "200px"}]'data-bind="source: gridSource, events: { change: change }"></div>viewModel = kendo.observable({ gridSource: new kendo.data.DataSource({ data:[ { LoadId: 125642, LoadDisplayId: "L138094", StatusId: 285, Status: "Pending", RouteName: "May200", Origin: "A Raymond Tinnerman Auto, INC ", Destination: "B L Downey Company Inc.", BillTo: "Behr Charleston", Carrier: "AAA Cooper", BeginDate: "04/01/2013", EndDate: "04/01/2013", NextActionDate: "04/01/2013", NextAction: "Ready To Tender", CheckCallException: false, TenderException: false, HasPendingCustomerRequest: null }, { LoadId: 125642, LoadDisplayId: "L100004", StatusId: 285, Status: "Pending", RouteName: "test", Origin: "A Raymond Tinnerman Auto, INC ", Destination: "B L Downey Company Inc.", BillTo: "Behr Charleston", Carrier: "AAA Cooper", BeginDate: "04/01/2013", EndDate: "04/01/2013", NextActionDate: "04/01/2013", NextAction: "Ready To Tender", CheckCallException: false, TenderException: false, HasPendingCustomerRequest: null } ] })});gridSource: [ { LoadId: 125642, LoadDisplayId: "L138094", StatusId: 285, Status: "Pending", RouteName: "May200", Origin: "A Raymond Tinnerman Auto, INC ", Destination: "B L Downey Company Inc.", BillTo: "Behr Charleston", Carrier: "AAA Cooper", BeginDate: "04/01/2013", EndDate: "04/01/2013", NextActionDate: "04/01/2013", NextAction: "Ready To Tender", CheckCallException: false, TenderException: false, HasPendingCustomerRequest: null }, { LoadId: 125642, LoadDisplayId: "L100004", StatusId: 285, Status: "Pending", RouteName: "test", Origin: "A Raymond Tinnerman Auto, INC ", Destination: "B L Downey Company Inc.", BillTo: "Behr Charleston", Carrier: "AAA Cooper", BeginDate: "04/01/2013", EndDate: "04/01/2013", NextActionDate: "04/01/2013", NextAction: "Ready To Tender", CheckCallException: false, TenderException: false, HasPendingCustomerRequest: null } ]