title: EXT-JS: datastore get all rows
body: <p>I have an datastore assigned to an table through an PagingToolbar. The paging size is limited to 10 per page. Now I want to create an export-function which exports all entries of this datastore.</p>
  
  <p>I have done the following code:</p>
  
  <pre><code>var countRows  = dataSource.getCount();
  var csvData    = new Array();
  for ( var row = 0; row &lt; countRows; row++ ) {
    csvData.push( dataSource.getAt( row ).data[ 'messageID' ] ) );
  }
  </code></pre>
  
  <p>this works fine, but only for the visible rows. If I change the first line to</p>
  
  <pre><code>var countRows  = dataSource.getTotalCount();
  </code></pre>
  
  <p>I get the right count of total rows, but when I want to access a row, that is not currently shown, I get an exception.</p>
  
  <p>Any Ideas?</p>