title: Getting a row from a data attribute in datatables.js
body: <p>I am struggling trying to find the right method to do this. Basically, I have an array of id values that correspond to which rows have been selected in my table. To construct this list, I use the following code. <code>this.options.ajaxId</code> is the key that accesses my Id value in the data object passed to the table.</p>
  
  <pre><code>this.getRowData(target)[this.options.ajaxId]
  </code></pre>
  
  <p>where my <code>getRowData</code> function is:</p>
  
  <pre><code>getRowData: function (HTMLrow) {
      return this.dataTable.row(HTMLrow).data();
  },
  </code></pre>
  
  <p>This works great, but then I am stumped on my next step which is re-selecting the correct rows when the table is re-drawn via paging, sorting, or searching. My plan was to cycle through the ID's and find which table row corresponded to that ID value, but I cannot find a function to input a key value search pair and return the html row. Something like the following is what I was thinking,</p>
  
  <pre><code>this.dataTable.findRow( key, value );
  // then my usage would be the following:
  var that = this;
  _.each(this.selectedList, function (id) {
      var row = that.dataTable.findRow( that.options.ajaxId, id );
      // code to select the row
  });
  </code></pre>
  
  <p>I haven't written it yet, but I know I can cycle through each of the rows, get the data for that row, and check it against what I am looking for, but in cases where the user is viewing 100 rows and has only one selection I would like to avoid that.</p>
  
  <p>Any insight?</p>
  
  <p>Thanks</p>