title: In DataTables Display current records indexes and total records in Language : Info : tag
body: <p>I am new to JQuery Data tables. I have a requirement where in i have to display only last ten entered records in a data table with no pagination or sorting.I am able to get the last ten records with the ajax call. but in the header and footer i have the record information.
  Right now if i have total 25 records and i am displaying only last 10, the table header/footer will show :
  Records 1 to 10 of 10. 
  This is because i have a language tag which is below:</p>
  
  <pre><code>"language":{
     "info":  "Records _START_ to _END_ of _MAX_",
  },
  </code></pre>
  
  <p>But my requirement is to display:
  Records 5 to 15 of 15 or 7 to 17 of 17.</p>
  
  <p>i checked data tables website, they had these for info keywords :</p>
  
  <p><img src="https://i.stack.imgur.com/OmkQ2.png" alt="This is info i got from data tables"></p>
  
  <p>but with <code>_MAX_</code> i am not getting the total records also with <code>_START_</code> and <code>_END_</code> i am getting Records 1 to 10 of 10 always even if my record sequence number which is getting displayed in the table is 5 to 15 </p>
  
  <p>Any help is appreciated. Please ask questions if my description is not enough.</p>
  
  <p>Here is my Data Table initialization code:</p>
  
  <pre><code>var Table = $('#MyDataTable').DataTable({
  
      "dom":'&lt;i&gt;&lt;"clear"&gt;&lt;p&gt;&lt;"bottomfmarg"f&gt;t&lt;i&gt;&lt;"clear"&gt;&lt;p&gt;',
      responsive: false,
      "processing": true,
      "ajax":{
         "url":"URL",&lt;%-- data will served via ajax request --%&gt;
         "type":"POST"
      },  
      "deferRender": true,
      "columns": [
               { "data": "col1"},
               { "data": "col2"},
               { "data": "col3"} 
               ,{ "data": null,"defaultContent": "","orderable": false}
      ],
      "paging": false,
      "info": true,
      "ordering":true,
      "searching":false,
      "serverSide":false,
      "pagingType": "simple_numbers",
      "lengthChange": false,
      "pageLength":50, &lt;%-- controls the pagination length --%&gt;
      "autowidth":true,
      "language":{
         "emptyTable":     "No Records",
         "info":           "Records _START_ to _END_ of _MAX_",
         "infoEmpty":      "0 records",
         "infoFiltered":   "filtered from _MAX_ total Record(s)",
         "loadingRecords": "Loading Records",
         "infoPostFix":    "",
         "thousands":      ",",
         "search":         "Filter search results:",
         "zeroRecords":    "0 Records"
      }
  });
  </code></pre>