jqGrid subgrid button / multiselect checkbox positioning?

本小妞迷上赌 提交于 2020-01-10 20:14:09

问题


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?

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

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.


回答1:


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:

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



来源:https://stackoverflow.com/questions/8672935/jqgrid-subgrid-button-multiselect-checkbox-positioning

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!