w2grid.sortMap

Map for sort fields (local to remote).
Object, default = {}
By default, if you click on the column, it will add column field to the sortData array to send to the server side for sorting. However, sometimes column field names are not the same as sort names. The .sortMap allows to map sort fields differently.
You can defined it during object creation: Or any time during the run-time:

User Comments

comments powered by Disqus