title: How to use datatables (jquery datagrid plugin ) to implement an check all and delete function?
body: <p>I am using jquery plugin Datatables to manipulate my rows
  Actually it has a tabletools plugin that allow checkall function,
  however, I can check all the items/ check multi, but how can <strong>add a delete button</strong>  and <strong>return the row selected</strong>?</p>
  
  <p>I already have the sql query for deletion and the function for a deletion warning popup  box .</p>
  
  <p>Thank you</p>
  
  <p><a href="http://datatables.net/release-datatables/extras/TableTools/select_multi.html">Select all in datatable</a></p>
  
  <p><a href="http://datatables.net/extras/tabletools/initialisation">Document on how to retrieve row, but i still don't understand how to do this, thank you</a></p>
  
  <pre><code>        $(document).ready( function () {
              $('#viewSub').dataTable( {
                  "sDom": 'T&lt;"clear"&gt;lfrtip',                 
                  "oTableTools": {
                      "sSwfPath": "../plugin/DataTables-1.9.0/extras/TableTools/media/swf/copy_cvs_xls_pdf.swf",
                      "sRowSelect": "multi",
                      "aButtons": [
                          "select_all",
                          "select_none",
                          "copy",
                          "print",
                          "delete", &lt;===********can not add here, seems only allow pre-defined button.
                          {
                              "sExtends":    "collection",
                              "sButtonText": "Save",
                              "aButtons":    [ "csv", "xls", "pdf" ]
                          }
                      ]
  
                  }
              } );
          } );
  </code></pre>