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

前端 未结 7 2279
走了就别回头了
走了就别回头了 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:26

    Would not this be much easier. Just using the ui element to map all the rows and finding their position by using sortable index() function ?

    stop: function(e, ui) {
            console.log($.map($(this).find('tr.ui-widget-content'), function(el) {
                return el.id + ' = ' + $(el).index();
            }));
            } 
    

提交回复
热议问题