Disable row select in jqGrid on right click

前端 未结 1 1904
Happy的楠姐
Happy的楠姐 2021-01-22 04:10

In jqGrid, I am currently disabling row select with the following:

beforeSelectRow: function() {
     return false;
}

This works fine for left

1条回答
  •  臣服心动
    2021-01-22 04:57

    If you want to disable the row select, you can config onSelectRow to return false, this will block both left click and right click.

    onSelectRow: function() {
         return false;
    }
    

    To force unselect row on right click:

    onRightClickRow: function () {
        grid.jqGrid('resetSelection');
        return false;
    }
    

    0 讨论(0)
提交回复
热议问题