title: pagingtoolbar does not receive total number
body: <p>Hi I have a grid in extjs4, where I need paging, the server sends correctly the totalProperty, but the pagingToolbar sees only the number of received records, not the total number, so in example if I limit the number of records to 200 and the pageSize of the store is 50 it is possible to move over the four pages, but I lose the other 1800 records that I left in the db;
  this is my store:</p>
  
  <pre><code> var store = Ext.create('Ext.data.Store', {
      pageSize: 50,
      model: 'companiesModel',
      autoLoad: true,
      root:'results',
  
      listeners :
      {
          load : function(store)
          {// riporta il numero di items nello store in alto sulla grid
              Ext.getCmp('numRow').setText("Companies: "+store.getCount());
          }
      },
      proxy: {
          idProperty: 'id',
          type: 'direct',
          directFn: QueryDatabase.getResults,
          totalProperty:'total',
          api:{
              read:QueryDatabase.getResults,
              update:QueryDatabase.updateCompany
          }
  
  
      }
  });
  </code></pre>
  
  <p>this is the pagingtoolbar put as dockeditem ofthe grid:</p>
  
  <pre><code>dockedItems: [Ext.create('Ext.toolbar.Paging', {
          dock: 'bottom',
      pageSize:50,
          store: store,
      displayInfo: true,
          displayMsg: 'Displaying Companies {0} - {1} of {2}',
      emptyMsg: "No Companies to display"
      })]
  </code></pre>
  
  <p>this is part of my json as it is shown by firebug:</p>
  
  <pre><code>total
  </code></pre>
  
  <p>2026</p>
  
  <p>result</p>
  
  <p>[Object { noteid=</p>
  
  <p>"1811"</p>
  
  <p>,  address=</p>
  
  <p>"Not Associated"</p>
  
  <p>,  city=</p>
  
  <p>"Not Associated"</p>
  
  <p>,  altri elementi...}, Object { noteid=</p>
  
  <p>"4956"</p>
  
  <p>,  address=</p>
  
  <p>"x"</p>
  
  <p>,  city=</p>
  
  <p>"Buenos Aires"</p>
  
  <p>,  altri elementi...}, Object { noteid=</p>
  
  <p>"4957"</p>
  
  <p>,  address=</p>
  
  <p>"x"</p>
  
  <p>,  city=</p>
  
  <p>"Buenos Aires"</p>
  
  <p>,  altri elementi...}, 47 altri elementi...]</p>
  
  <p>I googled a lot without any success, i could not find my mistake, I am sure that paging should not be so difficult, thanks in advance for your time</p>