title: Data tables showing all records instead of pagination while giving data through server json
body: <p>This is my json output.</p>
  
  <pre><code>{
      "draw": 0,
      "recordsTotal": 130,
      "recordsFiltered": 130,
      "data": [
          {
              "order_id": "32",
              "location_address": "XYZ road Delhi delhi",
              "order_status": "0",
              "created_by": "5",
              "from_date": "Mar-30-2015",
              "emp_name": " ",
              "actions": "\r\n\t\t\t\t\t&lt;a onclick=\"show_edit()\" class=\"btn default btn-xs purple \"&gt;\r\n                                               &lt;i class=\"fa fa-edit\" &gt;&lt;/i&gt; Edit &lt;/a&gt;"
          },
          {
              "order_id": "33",
              "location_address": "XYZ road Delhi delhi",
              "order_status": "0",
              "created_by": "5",
              "from_date": "Mar-30-2015",
              "emp_name": " Ranjeet thakur, abhijeet thakur",
              "actions": "\r\n\t\t\t\t\t&lt;a onclick=\"show_edit()\" class=\"btn default btn-xs purple \"&gt;\r\n                                               &lt;i class=\"fa fa-edit\" &gt;&lt;/i&gt; Edit &lt;/a&gt;"
          },
          {
              "order_id": "34",
              "location_address": "XYZ road Delhi delhi",
              "order_status": "0",
              "created_by": "5",
              "from_date": "Mar-31-2015",
              "emp_name": " ",
              "actions": "\r\n\t\t\t\t\t&lt;a onclick=\"show_edit()\" class=\"btn default btn-xs purple \"&gt;\r\n                                               &lt;i class=\"fa fa-edit\" &gt;&lt;/i&gt; Edit &lt;/a&gt;"
          },
          {
              "order_id": "35",
              "location_address": "XYZ road Delhi delhi",
              "order_status": "0",
              "created_by": "5",
              "from_date": "Mar-31-2015",
              "emp_name": " super Employee",
              "actions": "\r\n\t\t\t\t\t&lt;a onclick=\"show_edit()\" class=\"btn default btn-xs purple \"&gt;\r\n                                               &lt;i class=\"fa fa-edit\" &gt;&lt;/i&gt; Edit &lt;/a&gt;"
          },
          {
              "order_id": "36",
              "location_address": "XYZ road Delhi delhi",
              "order_status": "0",
              "created_by": "5",
              "from_date": "Mar-31-2015",
              "emp_name": " ",
              "actions": "\r\n\t\t\t\t\t&lt;a onclick=\"show_edit()\" class=\"btn default btn-xs purple \"&gt;\r\n                                               &lt;i class=\"fa fa-edit\" &gt;&lt;/i&gt; Edit &lt;/a&gt;"
          }
      ]
  }
  </code></pre>
  
  <p>"pageLength": 10 (It should show 10 records on a single page.)</p>
  
  <p>Still its showing 130 records on one page. But i want to show 10 records on a single page.. So how can I show..?</p>
  
  <p>Initialization of Plugin :- </p>
  
  <pre><code>dataTable: { 
                  "lengthMenu": [
                      [10, 20, 50, 100, 150, -1],
                      [10, 20, 50, 100, 150, "All"] 
                  ],
                  "pageLength": 10,
      aoColumns: [
      { mData: 'order_id'},
      { mData: 'user_name'},
      { mData: 'location_address'},
      { mData: 'from_date'},
      { mData: 'assign_to'},
         { mData: 'order_status'},
      { mData: 'actions'}
      ],
  
  "ajax": {
                      "url": page.php,
                  }
  </code></pre>