title: How to filter rows by id and redraw datatable
body: <p>I'd like to filter the datatable rows by an array of ids and redraw the filtered table. However, I could not get it to work by any combination of <code>rows(...).invalidate().data().draw(...)</code>.</p>
  <p><a href="https://jsfiddle.net/15vuz7hj/2/" rel="nofollow noreferrer">Here is a toy example</a></p>
  <p>The JS snippet to show the rows 1, 4, and 10:</p>
  <pre><code>$(document).ready( function () {
    var table = $('#example').DataTable();
    
    $('#getData').on('click', function() {
      console.log(&quot;hey&quot;);
      table.rows([0, 3, 9]).draw();
    })
  } );
  </code></pre>
  <p>My expected output would be to see only those 3 rows but I still see the full table.</p>
  <p>I was also thinking about an ID column that I wouldn't show but could use for searching purposes only by <code>column(0).search(id_column in ids)</code></p>