Issue with sorting column while editing rows inline in jqGrid

前端 未结 2 359
天命终不由人
天命终不由人 2020-12-10 07:40

My use of the grid involves sorting while having a few rows in inline edit mode.

The questions would be:

  1. Is there any way to execute sorting, whil

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-12-10 07:56

    If you want to try option 2, you can hook into the onSortCol event. In there you could cancel out of the editing mode of all the rows, and then allow the sort to execute. Just be sure not to return "stop" or the sorting won't happen at all.

    Raised immediately after sortable column was clicked and before sorting the data.

    You can get all the documentation here.

提交回复
热议问题