title: How to disable sorting for a specific columns in Ag-grid?
body: <p>I am using <a href="https://www.ag-grid.com/" rel="noreferrer">https://www.ag-grid.com/</a> in one of my AngularJs projects.My requirement is to disable the sorting on any column while any grouping is happening.</p>
  
  <p>I know we can disable <code>sorting/filtering</code> on single column with below configuration:</p>
  
  <pre><code>colDef.suppressMenu = true
  colDef.suppressSorting = true &lt;--- this i can set up while giving column definition
  </code></pre>
  
  <p>but how to do it dynamically on the specific condition, For more clarification please check the image below
  <a href="https://i.stack.imgur.com/tf0Ez.png" rel="noreferrer"><img src="https://i.stack.imgur.com/tf0Ez.png" alt="enter image description here"></a></p>
  
  <p>In this, I am grouping the grid by <strong>country</strong> and expanding <strong>Ireland</strong> country but now I don't to disable sorting on any parameter and enable it again when grouping attribute is removed.</p>
  
  <p>Is there a way to achieve this, Please let me know and if any duplicate question already exists please add that in the comment section.</p>
  
  <p>Thanks </p>