jqGrid子网格按钮/多选复选框定位? [英] jqGrid subgrid button / multiselect checkbox positioning?

查看:27
本文介绍了jqGrid子网格按钮/多选复选框定位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法,可以将在 jqGrid 中启用 subGrid 时出现的展开/折叠按钮从行的左端移动到右侧.有没有简单的方法来实现这一点?

I'm looking for a way to move the expand/collapse button that appears when you enable a subGrid in a jqGrid from the left end of the rows to the right. Is there an easy way to accomplish this?

同样的,当你启用多选时,你能控制出现在左边的复选框的位置吗?

Likewise, can you control the placement of the checkbox that appears on the left when you enable multiselect?

如果这些实际上在 colModel 中,那将是微不足道的,但它似乎是在幕后为您完成的.有什么办法可以覆盖吗?

It would be trivial if these were actually inside the colModel, but it seems to be done for you under the hood. Any way to override?

jQuery("#test").remapColumns([0,2,3,4,5,1],true,false);

jQuery("#test").remapColumns([0,2,3,4,5,1],true,false);

似乎与我需要的很接近,但它与隐藏"列(例如我试图移动的那两列)的搭配效果不佳.按照您的预期移动其他人.

seems to be close to what I need, but it doesn't play well with the "hidden" columns, like the two I'm trying to move. Moves the others as you would expect.

推荐答案

您不能只是将子网格按钮移动到另一个位置.

You can't just move the subgrid buttons in another position.

在关于关闭问题的答案中,我详细解释了这些问题.更重要的是,我制作了 演示,它移动(在某些限制下)从第一个位置到最后一个位置的多选复选框:

In the answer on the close question I explained in details about the problems. Even more I made the demo which move (under some restrictions) the multiselect checkboxs from the first to the last position:

您可以尝试对子网格按钮执行相同操作,但您应该清楚地了解 jqGrid 不支持此类技巧.

You can try to do the same with subgrid buttons, but you should clear understand that such tricks not supported by jqGrid.

这篇关于jqGrid子网格按钮/多选复选框定位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆