or

define(['kendo', 'data', 'utils', 'config'], function (kendo, data, utils, config) { var _runInit = false; var browseViewModel = kendo.observable({ browseSource: data.browseServices(), itemClick: function (e) { window.localStorage["RequestId"] = e.dataItem.RequestId; utils.navigate('details.html', 'slide'); } }) return { init: function (initEvt) { //kendo.bind($('#serviceDetailsListview'), browseViewModel, kendo.mobile.ui); }, beforeShow: function (beforeShowEvt) {}, show: function (e) { console.log(e.view.params.fromView); if (e.view.params.fromView != "detailsPage") { if (!_runInit) { kendo.bind($('#serviceDetailsListview'), browseViewModel, kendo.mobile.ui); _runInit = true; } else { browseViewModel.set("browseSource", data.browseServices()); } } }, viewModel: browseViewModel }});var browseServices = function () { var browseDataSource = new kendo.data.DataSource({ requestStart: function (e) { utils.showLoading(); }, requestEnd: function (e) { utils.hideLoading(); }, error: function (e) { var xhr = e.xhr; var statusCode = e.status; var errorThrown = e.errorThrown; alert("A error has occured fetching data from the server."); }, transport: { read: { url: config.browseUrl, dataType: "json", cache: false }, parameterMap: function (options, type) { var theSettings = utils.getCurrentSettings(); return { phonelat: window.localStorage["gpsLat"], phonelon: window.localStorage["gpsLong"], assetId: window.localStorage["AssetId"], groupId: window.localStorage["GroupId"], serviceId: window.localStorage["ServiceId"], range: theSettings.RequestRange } } }, change: function (e) { var data = this.data(); }, schema: { data: function (response) { storage.persistServicesCollection(response.Collection); return response.Collection; } } }); return browseDataSource; }<div data-role="view" data-layout="child" data-title="Service Overview" data-show="app.browseView.show" id="serviceDetailsView"> <ul data-role="listview" id="serviceDetailsListview" data-bind="source: browseSource, click: itemClick" data-template="templateServiceDetails" ></ul><script type="text/x-kendo-template" id="templateServiceDetails"> <div class="product"> <a data-role="detailbutton" data-style="detaildisclose"></a> #if (Image != null){# <img class="pullImage" src='#: Image.ImageUrl#' /> #}else{# <img class="pullImage" src='images/marker.png' /> #}# <h3>${Address} </h3> <p>Range: ${Range} km</p> <p>Status: ${Status}</p> <p>Created: ${DateCreated}</p> </script></div></div>When using the Toolbar method, IE8 flashes the browser vertical scrollbar for a brief moment after the grid is loaded the first time. Without the Toolbar method, the scrollbar is not flashed. Is this a browser/javascript issue, or a Kendo issue?
@(Html.Kendo().Grid<HelpController.AdministrationHelpIndexGridViewModel>() .Name("grid") .Columns(columns => { columns.Bound(h => h.Id) .Visible(false); columns.Bound(h => h.Name) .Width(400); columns.Bound(h => h.Description) .Width(400); columns.Bound(h => h.Id) .Width(500) .ClientTemplate(Html.ActionLink("#=LinkText#", "ClickThrough", "Help", new { Id = "#=Id#", area = "" }, new { target = "_blank" }).ToHtmlString()); columns.Bound(h => h.DisplayOrder) .Width(50); columns.Command(command => { command.Edit(); command.Destroy(); }) .Width(200); }) .HtmlAttributes(new { style = "width: 1550px;" }) .ToolBar(toolbar => toolbar.Template("<a class=\"k-button k-button-icontext\"><span class=\"k-icon k-i-plus\"></span>Add a help link</a>")) .Editable(editable => editable.Mode(GridEditMode.InLine)) .Events(events => events.Edit("onEdit")) .DataSource(dataSource => dataSource .Ajax() .PageSize(20) .Events(events => events.Error("error_handler")) .Model(model => model.Id(h => h.Id)) .Read(read => read.Action("Index_Read", "Help", new { area = "Administration" })) .Update(update => update.Action("Index_Update", "Help", new { area = "Administration" })) .Destroy(update => update.Action("Index_Destroy", "Help", new { area = "Administration" })) .Events(events => events.RequestEnd("onRequestEnd"))) )chart.options.legend.labels.color = "blue";chart.dataSource.read(data);chart.options.seriechart.options.seriesDefaults.markers.visible = true;chart.options.seriesDefaults.markers.size = 30;chart.options.seriesDefaults.markers.border.width = 5;
chart.dataSource.read(data);
<div id="items-view" data-role="view" data-title="Blocks & Items" data-layout="default-layout" data-init="app.items.init" data-show="app.items.showView"> <ul data-role="listview" data-style="inset" data-type="group"> <li> <ul class="ul-content"> </ul> </li> </ul></div>var data = app.items.filterLimit(1000, app.items.data);$("#items-view ul.ul-content").kendoMobileListView({ dataSource: new kendo.data.DataSource({ data: data }), template: "<li>#: name #</li>", endlessScroll: true, virtualViewSize: 50});{ records: [], totalRecordCount: 20, queryRecordCount: 20 }return new kendo.data.DataSource({ transport: { read: { type: "POST", data: request, cache: false, url: ServiceUri + "/Associates", dataType: "json" } }, serverPaging: false, pageSize: 25, schema: { data: "records", total: "totalRecordCount", model: { fields: { Id: { type: "number" }, Name: { type: "string" }, Sex: { type: "string" }, Race: { type: "string" }, Height: { type: "string" }, Weight: { type: "string" }, Age: { type: "number" }, DOB: { type: "date" }, LastChanged: { type: "date", field: "IdentifierDate" } } } },});requestEnd: function(e) { callback(e);},GetAssociates: function (id, pgSize, callback) { var request = { "SearchParameters": { ID: id } }; return new kendo.data.DataSource({ transport: { read: { type: "POST", data: request, cache: false, url: ServiceUri + "/Associates", dataType: "json" } }, serverPaging: false, pageSize: pgSize, schema: { data: "records", total: "totalRecordCount", model: { fields: { Id: { type: "number" }, Name: {type: "string" }, Sex: {type: "string" }, Race: {type: "string" }, Height: {type: "string" }, Weight: {type: "string" }, Age: {type: "number" }, DOB: {type: "date" } } } }, requestEnd: function(e) { callback(e); }, change: function(e) { callback(e); } }).bind('change', callback).bind('requestEnd', callback);}