title: set totalPageCount programmatically in Jquery Datatable(ver:1.10.6)
body: <p>There is a datatable using "serverside pagination", the trouble is its total count set by 99,999,999 for some reason. here how it seems.</p>
  
  <p><a href="https://i.stack.imgur.com/VkaBi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VkaBi.png" alt="enter image description here"></a></p>
  
  <p>Actually there 30 records and only first 3 page has rows since Displaylength equals to 10, rest of them empty which generated DT because TotalRecords set to 99,999,999  </p>
  
  <p>So all I need to do edit this using javascript.
  When I type <code>$('#myTable).DataTable().context[0]</code> in console there is some properties:</p>
  
  <pre><code>_iRecordsDisplay: 99999999
  _iRecordsTotal: 99999999
  json: aaData:(10) [{…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}, {…}], iTotalDisplayRecords:99999999 ,iTotalRecords:99999999,sEcho:"25"
  </code></pre>
  
  <p>so I tried these but not work;</p>
  
  <pre><code>asd.context[0].iRecordsDisplay=30
  asd.context[0]._iRecordsTotal=30
  $('#myTable').DataTable().page.len(10).draw();
  </code></pre>
  
  <p>how I tell dt there is 30 records actually so create 3 pages only?</p>