or
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);}01.(function (global) {02. var mobileSkin = "",03. app = global.app = global.app || {};04. 05. document.addEventListener('deviceready', function () {06. navigator.splashscreen.hide();07. $(document.body).height(window.innerHeight);08. }, false);09. 10. kendo.onResize(function () {11. setTimeout(function () {12. $(document.body).height(window.innerHeight);13. window.scrollTo(0, 0);14. }, 400);15. });