title: How can I find the checked rows in a YUI DataTable?
body: <p>I'm using a YUI DataTable with a checkbox column like this:</p>
  
  <pre><code>var myColumnDefs = [
      {key:"check", label:'', formatter:"checkbox"},                               
      {other columns...}
  ];
  </code></pre>
  
  <p>How can I iterate over all the rows that have been checked?</p>
  
  <p>UPDATE:</p>
  
  <p>Here is my current work-around:</p>
  
  <pre><code>function getCheckedIds() {
      var records = yuiDataTable.getRecordSet().getRecords();
      var ids = '';
  
      for (i=0; i &lt; records.length; i++) {
          var checked = false;
          if (records[i] != undefined)
          {
              checked = $('#' + records[i].getId() + ' td div.yui-dt-liner input.yui-dt-checkbox').attr('checked');
              if (checked) {
                  if (ids != '') {
                      ids += ',';
                  }
                  ids += records[i].getData("item.id");
              }
          }
      }
      return ids;    
  }
  </code></pre>