KendoUI Grid Pager部分 Nan-Nan of x Items

相关问题:

http://stackoverflow.com/questions/23941065/pager-error-in-kendo-gridnan-nan-of-1-items

http://www.telerik.com/forums/grid-is-not-working-properly

http://demos.telerik.com/aspnet-mvc/grid/editing-popup

 

解决办法:

A:

.Pageable(x => x.PageSizes(true))

在Pageable中开启PageSizes

B:

.DataSource(dataSource => dataSource.Ajax()
        .PageSize(10)

在DataSource中启用PageSize

方法A会显示每页显示多少Items的下拉框,如果不希望显示,则采用B方法, 直接指定默认每页显示值.

posted @ 2015-01-26 09:18  NiuSys  阅读(543)  评论(0编辑  收藏  举报