The grids in our application allow users to sort on multiple columns. I am now implementing a "favorites" feature to easily remember&restore filter, ordering and column order. I am facing some issues to correctly refresh the sort icons in the table header.
The code looks roughly like:
thegrid.setGridParam({
sortname: favorite_to_restore["sidx"],
sortorder: favorite_to_restore["sord"]
});
thegrid.trigger('reloadGrid');
This works correctly in the backend (ie the sorting order for the sql query in our database reflects the favorite), but the icons in header row aren't updated.
Is there an extra API call I can do to update the sort icons? I looked into "sortGrid", but that doesn't provide an easy answer.