As the ag-Grid sorting, setting the opt.enablesorting true, this will allow header clicks and show sort icons and sort within the grid.
However, I prefer to set api.setSortModel manually in a popup mdoel window rather than header clicks. So I want header clicks was disabled by some ways. I have tried some ways to fix it, but any of them worked.
e.g. I setted the opt.enablesorting false, header clicks sort was be disabled. But meantime, api.setSortModel didn't work as well.
e.g. I used headerCellRenderer to custom headerCellTemplate, but also failed. Because the up down arrow was shown up when I click the header.
Are there any ways to help me to fix it ?
enableSorting: truesomewhere in your gridOptions, then remove it. - Other than this we would need you to include some code for us to help you debug, better yet, put your code in a jsfiddle or something similar. - Jarod Moser