jqGrid 树形网格与寻呼机
我们如何使用jqGrid通过寻呼机制作树形网格?
我已经检查并尝试了演示,但它没有显示任何寻呼机,即使代码中有一个寻呼机 div
如何创建寻呼机?
How do we make a tree grid with pager using jqGrid?
I have checked and try the demos, but it didn't show any pager, even though there is a pager div in the code
How do create the pager ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
树形网格有一些记录的限制:
在其他地方您可以阅读文档几乎一样:
Tree grid has some limitations which are documented:
In other place of the documentation you can read almost the same:
我通过修改 setTreeGrid 函数来实现分页。我注释掉了以下行:
然后出现按钮,请求返回到服务器以请求信息。现在,我将整个树加载到本地变量,然后使用 setJSONData 将数据加载到树中。它的功能符合我的预期,但我还没有对其进行彻底测试。
对于行列表
$tpmultiselect = false;$tprowList = [10,15,20,30];
I got pagination to work by modifying the setTreeGrid function. I commented out the following line:
The buttons then appeared and the requests were going back to the server to request the information. Now for this I was loading the entire tree to a local variable then using setJSONData to load the data into the tree. It functions the way I would expect it to but I haven't thoroughly tested it.
For RowList
$t.p.multiselect = false;$t.p.rowList = [10,15,20,30];
尝试将
dppgbuttons = !1;
更改为dppgbuttons = !0;
并将dppginput = !1;
更改为dppginput = !0;< /code> AND
dprowList = [];
到setTreeGrid: function () {...}
块中的dprowList = [10,50,100];
>Try change
d.p.pgbuttons = !1;
tod.p.pgbuttons = !0;
ANDd.p.pginput = !1;
tod.p.pginput = !0;
ANDd.p.rowList = [];
tod.p.rowList = [10,50,100];
in blocksetTreeGrid: function () {...}
根据 “treeGrid 的新函数” Vyacheslav N. Boyko将此功能添加到jqGrid中。并且有一个未解决的问题 要求将此功能应用于 jqGrid。
According to "New functional for treeGrid" Vyacheslav N. Boyko added this feature to jqGrid.And there is a open issue that demands to apply this feature to jqGrid.