C# MVC2 Jqgrid - what is the correct way to do server side paging?

前端 未结 1 1518
轮回少年
轮回少年 2021-01-25 10:00

I have a jqgrid where the database table has a few thousand rows, but the jqrid shows only 15 at a time.

It should be displaying very quickly (it doesnt take long to q

相关标签:
1条回答
  • 2021-01-25 10:18

    You should post more full code. The model.ToGridData is not defined in the current code for example. How you caclulate index from the imput patrameters and so on are also unclear. Only having model.ToGridData() one can say whether the output which your program produce are correspond to the jsonReader which you define.

    I recommend you to look this old answer, where both paging and sorting are used. In one more answer you will find more references to code examples.

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