The kendo grid is not displaying the paging footer correctly if the grid is part of a modal dialog (Bootstrap Modal). It only shows one page with the possibility to move to the next one (that's working). As you can see in the attached screenshot kendo_grid_paging_wrong.png.
After a resizing event of the browser - e.g. change browser window size or show developer tool bar (F12), ... - the grid becomes displayed correctly. As you can see in the attached screenshot kendo_grid_paging_right.png.
Is this a kind of an incompatibility or bug? We use this kind of code snipped all the time outsite of modals and they do not experience this behaviour.
The associated code to display this grid is as follows:
@(Html.Kendo().Grid<AccountModel>()
.Name(
"accountGrid"
)
.ToolBar(tlb => {
tlb.Search();
})
.DataSource(dataSource => dataSource
.Ajax()
.FullCrud(
"AccountCrud"
)
.PageSize(5)
)
.Selectable(sel => sel.Enabled(
true
).Type(GridSelectionType.Row))
.Columns(columns =>
{
columns.Bound(i => i.Id).Width(100);
columns.Bound(b => b.Name);
columns.Bound(b => b.LoginName);
columns.Bound(b => b.Description);
})
.DefaultOverview(StringLocalizer)
.Search(search =>
{
search.Field(f => f.Name);
search.Field(f => f.LoginName);
search.Field(f => f.Description);
})
.Pageable(p => p
.PageSizes(
new
[] { 5, 10, 25 })
)
)