title: jquery data table server side paging
body: <p>hi we using jquery data table ,
  Till now we able to do api call and load the data .
  My server side code - </p>
  
  <pre><code>   string headers = "\"total\": \"" + totalPages + "\", \"columnNames\": \"" + columnNames + "\", \"page\": \"" + page + "\", \"records\": \"" + totalrows + "\"";
  
  
                          responsetoken.content = functions.Serialize(ldData).Insert(1, headers + ", ");
  </code></pre>
  
  <p>and my client side code - </p>
  
  <pre><code>   $.ajax({
                  url: 'staticreport',
                  data: JSON.stringify({
                       startDate: that.startDate, endDate: that.endDate
                  }),
                  cache: false,
                  datatype: "json",
                  type: "PUT",
                  success: function (data) {
                      if (data.StaticReportList != null) {
  
                        var columns = [];
                          var colName = data.columnNames.split(',');
                          console.log(colName);
                          for (var i in colName) {
                              columns.push({ data: colName[i], title: colName[i] });
                          }
                          console.log(columns);
                          console.log(columns.data);
                          $('#grid').DataTable({
                              data: data.StaticReportList,
                              columns: columns
                          });
                      }
                      that.mainView.ajaxDecrement();
                  }
              });
  </code></pre>
  
  <p>i want to put paging in datatable which will call api after every next click and get next set of record , at time i only bringing 100 record and also count of total record to create the paging . </p>
  
  <p>this is how my object looks
  <a href="https://i.stack.imgur.com/JfXNG.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JfXNG.png" alt="enter image description here"></a></p>
  
  <p>how i can apply server side paging in datatable ?</p>