title: Select all rows in active page only jquery Datatable
body: <p>I'm using jquery datatable on a gidview and there is a checkbox on the datatable header. The purpose of that checkbox is to check all checkboxes in the current page of the gridview rows.</p>
  
  <p>So am using the function </p>
  
  <pre><code>var table = $('#Tab_ApplicantList').DataTable();
      var rows = $('#Tab_ApplicantList').dataTable().fnGetNodes();
      $(rows).each(function () {
          $(this).find("input.grey").iCheck('check');
      });
  </code></pre>
  
  <p>But the problem is it is selecting all rows in the datatable, not just the rows in the active page. So how can I achieve that to check rows in the current page alone?</p>