title: How to get row values in Jquery Datatable Render?
body: <p>Hello guys I am stuck on something I have to get the values of the whole row of data table, as far I am getting id but not getting whole row object</p>
  
  <p>this is where I am </p>
  
  <pre><code>var table = $('.dtPrimaryBottom').DataTable({
      // dom: "Bfrtip",
      "lengthMenu": [[6], [7]],
      paging: true,
  
      columns:[
         { title: 'Student ID', data: 'stu_ID', visible:false},
  
          { title: 'Registration No', data: 'Registration No' , 'searchable':true},
          { title: 'Name', data: 'Name' },
          { title: 'FathersName', data: 'FathersName' },
          { title: 'Class', data: 'Class' },
          { title: 'Section', data: 'Section' },
          {
              //"title": "Actions",
              //"mdata": null,
              //"render": function (data, type, row) {
              //    return '&lt;button class="btnID"&gt;Edit&lt;/button&gt;';
  
              //"mData": null,
              //"bSortable": false,
              //"mRender": function (stu_ID) { return '&lt;input id="btnDispose" type="button" onclick="myfunction(' + stu_ID +')" value="Edit" /&gt;'; }
              title:'Actions',
              'data': 'stu_ID',
              'render': function (data, type, row) {
                  debugger;
                  var id = $(this).data('stu_ID');
  
                 // console.log(data);
                  return '&lt;input id="btnEdit" type="button" class="btn btn-warning" onclick="myfunction(' + data + ')" value="Edit" /&gt;  &lt;input id="btnDelete" type="button" class="btn btn-danger" onclick="myfunction(' + data + ')" value="Delete" /&gt;';
              }                  
          }               
      ],    
      data: JsonData
  });
  </code></pre>
  
  <p>on my onclick function when I write data I get the id but when I try to pass the whole row to my function it does not get hit</p>
  
  <pre><code>function myfunction(data) {
      debugger;
      var stid = row.stu_ID;
      var regNo = row
  
  
  
      alert(stu_ID);
  }
  </code></pre>
  
  <p>how to pass whole row values when clicking on edit button?</p>