title: EXTJS4 - For TreeStore, how to pass parameters and action methods?
body: <p>I am using Extjs4 TreeStore, i want to know how to pass parameters (like mode = 'list') and action methods (POST or GET).</p>
  
  <p>Thanks in advance.</p>
  
  <p>EXTJS 3.x i have used like this it's working fine:</p>
  
  <pre><code>loader: new Ext.tree.TreeLoader({
      dataUrl: 'content/permissions/server.php',
      baseParams: {
          mode: 'getPermissions'
      }
  })
  </code></pre>
  
  <p>EXTJS 4.x i have used like this but it is not working:</p>
  
  <pre><code>Ext.create('Ext.data.TreeStore', {
      autoLoad: true,
      proxy: {
          type: 'ajax',
          url: 'server.php'
      },
      extraParams: {
          mode: 'getTree'
      },
      actionMethods: 'POST',
      root: {
          text: 'Tree',
          id: 'src',
          expanded: true
      }
  });
  </code></pre>
  
  <p>Thanks,
  Riyaz</p>