or
application.router.route( "/things/:thingId", function ( thingId ) { var store = application.managedContext.getEntityStore( "things" ); store.find( thingId ) // potentially async call which returns a promise to return a thing .done( function ( thing ) { application.kendoApplication.navigate( "views/thing-detail.html" ); application.views.thingDetailViewModel.setSelectedThing( thing ); });});function showCalendar(userID) { var apiUrl = "/svc/pimapi/calendar/" + userID; $("#scheduler").kendoScheduler({ time: "Europe/Berlin", views: ["week", "day", "month"], height: 600, dataSource: { type: "json", transport: { read: { url: apiUrl } }, schema: { data: "ResponseItems", model: { fields: { Title: { from: "Stichwort", type: "string" }, Start: { from: "Terminstart", type: "date" }, End: { from: "Terminende", type: "date" }, Description: { from: "Memo", type: "string" } } } } } });}{"ResponseItems":[{"Stichwort":"test","Terminstart":"04.09.2013 16:00:00","Terminende":"04.09.2013 16:30:00","Memo":"testtest","Art":"T2"},{"Stichwort":"testtest","Terminstart":"05.09.2013 12:00:00","Terminende":"05.09.2013 13:00:00","Memo":"testetestetst\r\n\r\nPARTY","Art":"T1"}]}var grid = $('#myTable').kendoGrid({ selectable: "row", detailInit: function() { /* load detail items with json ajax request */ }, change: function() {.... }}).data('kendoGrid');<div data-role="view" data-after-show="aftershow"> <div data-role="header"> <div data-role="navbar"> //nav stuff in here </div> </div> <p>Hi</p> <div id="window"> Content of the Window </div> <script> $("#window").kendoWindow(); </script></div>function createGauges(conveyanceId) { $("#depthBar-" + conveyanceId).kendoLinearGauge({ pointer: { value: 0, shape: "arrow", color: "transparent", start: 0, reverse: true }, scale: { majorUnit: 500, minorUnit: 100, labels: { visible: false }, min: -2000, max: 2000, vertical: false, reverse: false, ranges: [ { from: -2000, // LimitLo to: -1500, color: "#ffc700" }, { from: 2000, // LimitHi to: 1500, color: "#ffc700" }, { from: 2000, // LimitHiHi to: 1800, color: "#c20000" }, { from: -5000, to: -1800, color: "#c20000" // LimitLoLo }, { from: 0, to: 0, color: "lightblue" } ] } });$('#depthBar-' + conveyanceId).data("kendoLinearGauge").options.scale.ranges[4].to = depthMessage;