title: jqGrid grouping - hiding the group header and footer when only one row
body: <p>I use the grouping feature in a jqGrid. 
  But I want to display the group header (jqgroup) and group footer (jqfoot) only when there is more than one element in the group.</p>
  
  <p>I am trying to do it with JQuery selectors in the <em>loadComplete</em> callback.
  I have already succeeded in hiding the group header by checking the number of items in the group header text.</p>
  
  <pre><code>groupingView : { 
    ..
    groupText: ['&lt;b&gt;{0}&lt;/b&gt; ({1})'],
  }
  
  loadComplete: function(data) {     
    // group header text is "value (number of elements)"
    $("#grid tr.jqgroup:contains('(1)')").hide(); 
  }
  </code></pre>
  
  <p>But I cannot find the correct selector to hide the group summary row. 
  I have tried the following for example:</p>
  
  <pre><code>$("#grid tr.jqgroup:contains('(1)') + .jqfoot")
  </code></pre>