I has a grid with many column,and I set the grid overflow-x:scroll,but it seems that that the pager not to automatic lengthening when I drag to scroller? How to make the pager flow to right more closely?
@(Html.Kendo().Grid(Model)
.Name("StudentGrid")
.Columns(columns =>
{
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
})
.Navigatable()
.Groupable()
.Pageable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(50)
.Read(read => read.Action("GetStudentImfo", "Student"))
).AutoBind(false)
.Resizable(resize => resize.Columns(true)))
and the css style:
#StudentGrid {
overflow-x: scroll;
}
@(Html.Kendo().Grid(Model)
.Name("StudentGrid")
.Columns(columns =>
{
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
columns.Bound(p => p.Name).Title("Name").Width(200);
columns.Bound(p => p.Age).Title("Age").Width(200);
})
.Navigatable()
.Groupable()
.Pageable()
.DataSource(dataSource => dataSource
.Ajax()
.PageSize(50)
.Read(read => read.Action("GetStudentImfo", "Student"))
).AutoBind(false)
.Resizable(resize => resize.Columns(true)))
and the css style:
#StudentGrid {
overflow-x: scroll;
}