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

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

问题描述

我正在寻找一种方法来移动展开/折叠按钮,当您从右侧的行左侧启用jqGrid中的一个子网格时出现。有没有一个简单的方法来实现这一点?

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 subgrid按钮/多选复选框定位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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