简体   繁体   English

extjs分页工具栏

[英]extjs paging toolbar

i am using extJs paging tool bar with store or grid panel ,it works fine with records . 我正在使用带有商店或网格面板的extJs分页工具栏,它可以很好地处理记录。

when if there are no records in database,and after receive jsson data.it does,nt display proper number of records which will be zero .please give me solution 当数据库中没有记录时,接收到jsson数据后,nt显示正确的记录数,该记录为零。请给我解决方案

You must have the total number of rows calculated in the controller part, to have a result as this one: 您必须在控制器部分中计算出总行数,以得到如下结果:

{success:true,"total":1,"result":[{"id":"2","MyColumn1":"blabla","MyColumn2":"blibli"}]}

Where total is number of rows 总计是行数

Can you give us your code and the json result that it's given to your store 你能给我们你的代码和给你商店的json结果吗

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM