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")))
)