jqgrid - Disable Header Check box (multiselect = true) if all rows are disable

后端 未结 2 1970
感动是毒
感动是毒 2021-01-26 02:17

Using jqgrid with multiSelect=\"true\" option. I am disabling rows and prevent its selection based on some flag status as mentioned below

Disable row(s) bas

2条回答
  •  北恋
    北恋 (楼主)
    2021-01-26 02:41

    The checkbox in the header has the id which is combined from the "cb_" prefix and the grid id. So you can hide the element with

    var myGrid = $("#list"); $("#cb_"+myGrid[0].id).hide();

提交回复
热议问题