Ivanf
Ivanf

Reputation: 61

jqGrid. if event onSortComplete is available?

Im trying to figure out, if some event like 'onSortComplete' is available for this plugin. jqGrid already have event 'onSortCol', which is raised BEFORE sorting of some particular column, and it is not suitable for me. I have already tried to use event 'gridComplete' to work around this, but this event is raised almost on after each action with grid. (e.g. adding new Row).

Does anybody have any solutions?


Thanks in advance, Ivan.

Upvotes: 1

Views: 1660

Answers (1)

Oleg
Oleg

Reputation: 221997

If sorting is started the grid contain will be reloaded from the server or from the local data. So the end of sorting is after the grid will be loaded and filled. So the usage of loadComplete or gridComplete is the correct way. If you need distinguish between end of sorting and other refreshing of the grid you can just set a variable inside of onSortCol which you clear always in loadComplete or gridComplete. In the way you would be able to do some actions at the end of sorting.

Upvotes: 1

Related Questions