Pager error in Kendo Grid(Nan-Nan of 1 items)

后端 未结 7 1390
执笔经年
执笔经年 2021-01-17 15:51

I am trying to create a Kendo grid with a list of student details. On click of the add button, the pager shows \"Nan-Nan of 1 items\".

@(Html.Kendo().Grid<         


        
相关标签:
7条回答
  • 2021-01-17 16:40

    Add pageSize:5 inside of dataSource:{ } as,

             dataSource: {
                pageSize: 5
             }
    

    if you put pageSize: 5 outside of dataSource:{ } you will get that error "Nan-Nan"

    0 讨论(0)
提交回复
热议问题