Remove sorting menu from ui-grid column header

Michael picture Michael · Sep 19, 2015 · Viewed 25.2k times · Source

I created ui-grid that has three columns, by default, the column header have a 'v' shaped icon (marked in red circle in the image) :

enter image description here

Here the code and the plunker:

In the image above the grid I have created in my project.

My question is how can I remove the "v" sign in header row in red circle?

Answer

Chris picture Chris · Sep 20, 2015

What you want is:

$scope.gridOptions = {
    enableColumnMenus: false
    ...
}