title: Pass Id column in jQuery data tables as parameter?
body: <p>I have build a table with jQuery Data tables, and i would like a the button to preform a function.</p>
  
  <p>So far i can get the buttons to enter the jquery function but they always pass though the parameter null.</p>
  
  <p>I am trying to pass the GoodNumberId to the function.</p>
  
  <pre><code>function GetGoods() {
  
          $.post("GetGoods", function (GoodsDS) {
              var obj = jQuery.parseJSON(GoodsDS);
              var table = obj.Table;
  
              $('#demo').html('&lt;table cellpadding="0" cellspacing="0" border="0" class="display" id="example"&gt;&lt;/table&gt;');
              $('#TableWrapper').dataTable({
                  "bJQueryUI": true,
                  "sPaginationType": "full_numbers",
                  "bProcessing": true,
                  "bDeferRender": true,
                  "aaData": table
               ,
                  "aoColumns": [
                  { "mDataProp": "GoodNumberId", "sTitle": "Goods ID" },
                  { "mDataProp": "SerialNumber", "sTitle": "Serial Number" },
                  { "mDataProp": "Make", "sTitle": "Make" },
                  { "mDataProp": "Model", "sTitle": "Model" },
                  { "mDataProp": "Description", "sTitle": "Description" },
                  //{ "mDataProp": "IMEINumber", "sTitle": "IMEINumber" },
                  { "mDataProp": "Condition", "sTitle": "Condition" },
                 // { "mDataProp": "DistinguishingMarks", "sTitle": "DistinguishingMarks" },
                 // { "mDataProp": "OtherFeatures", "sTitle": "OtherFeatures" },
                  //{ "mDataProp": "Status", "sTitle": "Status" },
                  { "mDataProp": "ItemStatus", "sTitle": "Item Status" },
                  { "mDataProp": "Price", "sTitle": "Price" },
                  { "mDataProp": "TransactionDate", "sTitle": "Transaction Date" },
                  //{ "mDataProp": "TransactionTypeId", "sTitle": "TransactionTypeId" },
                  {"mDataProp": "TransactionDescription", "sTitle": "Transaction" },
                  { "mData": null,
                      "bSortable": false,
                      "mRender": function (GoodNumberId) { return '&lt;input id="btnDispose" type="button" onclick="Dispose(' + GoodNumberId +')" value="Dispose" /&gt;'; }
                  }   
                  ]
              });
          });
      };
  </code></pre>
  
  <p>The table variable looks as follows:</p>
  
  <p><img src="https://i.stack.imgur.com/TuciP.png" alt="enter image description here"></p>
  
  <p>I need each button to pass the Id of it's current row?</p>