Disable subgrid expansion for selected rows of jqGrid

前端 未结 4 1578
不知归路
不知归路 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:08

    Add this to the gridConfig

    afterInsertRow: function(rowid, aData, rowelem) {
        // Remove the subgrid plus button except for rows that have exceptions
        if (CONDITION) {
            $('#' + rowid).children("td.sgcollapsed").unbind().html("");
        }
    },
    

提交回复
热议问题