jqgrid页脚json格式是什么
我目前正在尝试解决页脚总数的问题。我尝试在互联网上搜索一些示例,但他们使用的是 php,而我使用的是 java。你能告诉我这个 php 脚本的 json 到底是什么
$response->userdata['total'] = 1234;
$response->userdata['name'] = 'Totals:';
样子吗?
{"total":0,**"userdata":[{"total":1234,"name":"Totals"}]**,"page":0,"aData":.....
谢谢。
i am currently trying to solve my problem with the total in the footer. i tried searching in the internet with some examples, but they are using php, and i am using java. can you please show me what exactly the json looks like for this php script
$response->userdata['total'] = 1234;
$response->userdata['name'] = 'Totals:';
is this what it looks like?
{"total":0,**"userdata":[{"total":1234,"name":"Totals"}]**,"page":0,"aData":.....
thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果您的列的名称为“total”和“name”,
userdata
必须看起来像而不是
能够显示在页脚中。
userdata
must look likeinstead of
to be able be displayed in footer if your columns have names "total" and "name".
默认情况下,json 响应中 jqGrid 页脚所需的关键数据是页面、总计和记录,因此在 json 响应中确保您有如下所示的内容:
by default, the key data you need for the jqGrid footer in your json response are page, total and records, so in your json response make sure you have something that looks like this: