jqGrid with an editable checkbox column

后端 未结 6 1914
难免孤独
难免孤独 2020-12-23 20:41

When using jqGrid how do you force a cell to load in its editable view on page load as well as when it is clicked?

If you set up \'cell editing\' like below, the che

6条回答
  •  隐瞒了意图╮
    2020-12-23 20:55

    I have one submit function that sends all grid rows to webserver.

    I resolved this problem using this code:

    var checkboxFix = [];
    $("#jqTable td[aria-describedby='columnId'] input").each(function () {
            checkboxFix.push($(this).attr('checked'));
    });
    

    Then I mixed with values got from the code below.

    $("#jqTable").jqGrid('getGridParam', 'data');
    

    I hope it helps someone.

提交回复
热议问题