title: How to disable row group expand functionality on one row?
body: <p>After a lot of searches in SO without any particular solution, I am compelled to ask this question.
  What I want is to hide a row group icon on a single group row. Like in the below picture I have a group row that has only one record, which is already shown in the top row. I want to hide that collapse icon on that single record. Only collapse/expand icon shown when group rows are more than one.</p>
  <p>For reference see <a href="https://www.ag-grid.com/angular-data-grid/master-detail-master-rows/#example-dynamic" rel="nofollow noreferrer">AG-Grid Master-Detail Section</a>, here they specify which rows to expand. Same functionality I needed here.</p>
  <p><a href="https://i.stack.imgur.com/xvw6X.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/xvw6X.png" alt="enter image description here" /></a></p>
  <p>I'm using the below versions of AG-Grid Angular (v9)</p>
  <pre><code>&quot;@ag-grid-community/core&quot;: &quot;^25.3.0&quot;,
  &quot;@ag-grid-enterprise/row-grouping&quot;: &quot;^26.0.0&quot;,
  &quot;@ag-grid-enterprise/server-side-row-model&quot;: &quot;^25.3.0&quot;,
  &quot;ag-grid-angular&quot;: &quot;^25.3.0&quot;,
  &quot;ag-grid-community&quot;: &quot;^25.3.0&quot;,
  </code></pre>
  <p>Here is my code:</p>
  <pre><code>this.rowModelType = 'serverSide';
  this.serverSideStoreType = 'partial';
  this.cacheBlockSize = 20;
  this.gridOptions = {
    rowData: this.loanlist,
    columnDefs: this.generateColumns(),
    getNodeChildDetails: function(rowItem) {
      if (rowItem.orderCount &gt; 1) {
        return {
          expanded: true
        }
      } else {
        return null;
      }
    }
  }
  </code></pre>
  <p>The issue is the <code>getNodeChildDetails</code> is not accessible. Browser console showing me the below warning and my above code is not working.</p>
  <p><a href="https://i.stack.imgur.com/FeD8t.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FeD8t.png" alt="enter image description here" /></a></p>