Calling sort on slickgrid

后端 未结 10 1002
我寻月下人不归
我寻月下人不归 2021-02-04 18:40

In the slickgrid I\'m able to set the sort column and it\'s sort direction using the grid.SetSortColumn(colName,true/false). This only sets the sorting glyph but do

10条回答
  •  忘了有多久
    2021-02-04 19:01

    I have multiple column sort enabled, I had to change the function to pass the correct sort column.

    grid.onSort.subscribe(function(e, args) {
        gridSorter(**args.sortCols[0].sortCol.field**, **args.sortCols[0].sortAsc**, grid, gridData);
    });
    

提交回复
热议问题