title: ExtJs rowExpander plugin - automatically expand based on row data
body: <p>I'm trying to accomplish something which sounds simple, but I'm not finding a solution.</p>
  
  <p>I've got a grid in front of a buffered store and a rowExpander plugin.  Everything is working fine, but I'd like to have the expander default to open based on an attribute (in this case a simple boolean value) in the store.  Normally I'd loop through all the records initially, but since it's a buffered store, I don't have all of the records at first.</p>
  
  <p>Is there something on the bufferedRenderer that I can hook into?</p>
  
  <p>Any suggestions?  Thanks in advance!</p>
  
  <p>the below fiddle has the following code which will attempt to expand when replycount > 1</p>
  
  <pre><code>            prefetch: function (store, records, successful, operation, eOpts) {
              console.log('in prefetch')
              var grid = Ext.ComponentQuery.query('#testGrid')[0];
              var pluggy = grid.getPlugin('rowexpander')
  
              for (var i in records) {
                  if (records[i].get('replycount') &gt; 1) {
                      console.log(records[i].get('replycount') + ': is greater than 1...so expand');
                      var rIndex = store.indexOf(records[i]);
                      pluggy.toggleRow(rIndex, records[i]);
                  } else {
                      //console.log(records[i].get('replycount') + ': is not greater than 1...so no expand');
                  }
              }
          }
  </code></pre>
  
  <p>adding fiddle:  <a href="https://fiddle.sencha.com/#view/editor&amp;fiddle/20qh" rel="nofollow noreferrer">link</a></p>