jqGrid: is there an event for when columns are reordered?

前端 未结 7 2275
走了就别回头了
走了就别回头了 2021-02-09 15:09

I\'m using the column reordering feature in jqGrid

$grid = jQuery(\"#list\").jqGrid({
    sortable:true,
    ...
});

Is there an event that fir

7条回答
  •  伪装坚强ぢ
    2021-02-09 15:28

    This works:

    [EDITED]

    $('.ui-jqgrid-hbox table', $('#' + gridId).parents('.ui-jqgrid-view')).bind("sortstop", function () { onGridColumnReordered(gridId) })

    where you need to pass your gridId and create that onGridColumnReordered function of course.

提交回复
热议问题