Disable subgrid expansion for selected rows of jqGrid

前端 未结 4 1590
不知归路
不知归路 2021-01-01 00:26

Problem: jqGrid with subgirds. I want to disable the expand/collapse functionality for some rows of the main grid.

4条回答
  •  清酒与你
    2021-01-01 01:02

    Unfortunately there is no jqGrid API for this. You will have to wait until the grid is created and then, perhaps from the loadComplete event, you will need to manually loop over all rows and disable selected ones.

    If you inspect the DOM elements that compose the grid you can probably figure out a way to remove / disable the expander for selected rows. Perhaps by using jQuery.remove.

提交回复
热议问题