title: How to get child nodes after store load
body: <p>Version: ExtJs 4.1</p>
  
  <p>To change the child items I use this function:</p>
  
  <p><strong>TreeStore</strong> (Ext.data.TreeStore)</p>
  
  <pre><code>storeId  : 'treeStore',
  ...
  constructor: function( oConfig ) {
  ...
  this.on( 'expand', function( oObj ) {           
          oObj.eachChild(function(oNode) {
             switch(oNode.data.type) {
                case "report":
                   oNode.set('icon', strIconReport);
                break;
                case "view":
                   oNode.set('icon', strIconView);
                break;
             }
          });
       });
  </code></pre>
  
  <p><strong>Reload</strong></p>
  
  <p>After removing or adding items in the tree, I reload the tree somewhere else with:</p>
  
  <pre><code>var oStore = Ext.getStore('treeStore');
  oStore.load({
          node     : oNode,
          params   : { 
             newpath     : oNode.data.path, 
             overwrite   : true
          }
       }); 
  </code></pre>
  
  <p>Although it is the same store <code>treeStore</code>, after loading and expanding to the correct path, the icons are not changed since the <code>.on( 'expand')</code> function is not called. Why?</p>
  
  <p><strong>Question</strong></p>
  
  <p>How can I change the icons of this newly loaded store before it expands to the node path?</p>
  
  <p><strong>What I tried</strong></p>
  
  <p>Before calling <code>.load()</code> I tried to edit the children with <code>oNode.eachChild(function(oChild) {}</code> but no success.</p>