jqGrid 树形网格与寻呼机

发布于 2024-10-02 16:15:33 字数 96 浏览 8 评论 0原文

我们如何使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

梦境 2024-10-09 16:15:33

树形网格有一些记录的限制:

寻呼机功能当前已禁用
对于树网格

其他地方您可以阅读文档几乎一样:

由于jqGrid目前还没有
支持分页,当我们有
树形网格寻呼机元素是
自动禁用。

Tree grid has some limitations which are documented:

Pager functionality currently disabled
for treeGrid

In other place of the documentation you can read almost the same:

Since jqGrid currently does not
support paging, when we have a
treegrid the pager elements are
disabled automatically.

你爱我像她 2024-10-09 16:15:33

我通过修改 setTreeGrid 函数来实现分页。我注释掉了以下行:

$t.p.pgbuttons = false;$t.p.pginput = false;

然后出现按钮,请求返回到服务器以请求信息。现在,我将整个树加载到本地变量,然后使用 setJSONData 将数据加载到树中。它的功能符合我的预期,但我还没有对其进行彻底测试。

对于行列表
$tpmultiselect = false;$tprowList = [10,15,20,30];

I got pagination to work by modifying the setTreeGrid function. I commented out the following line:

$t.p.pgbuttons = false;$t.p.pginput = false;

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];

爱要勇敢去追 2024-10-09 16:15:33

尝试将 dppgbuttons = !1; 更改为 dppgbuttons = !0; 并将 dppginput = !1; 更改为 dppginput = !0;< /code> AND dprowList = [];setTreeGrid: function () {...} 块中的 dprowList = [10,50,100]; >

Try change d.p.pgbuttons = !1; to d.p.pgbuttons = !0; AND d.p.pginput = !1; to d.p.pginput = !0; AND d.p.rowList = []; to d.p.rowList = [10,50,100]; in block setTreeGrid: function () {...}

话少情深 2024-10-09 16:15:33

根据 “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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文