0
Q:

datatable get row data

var table = $('#example').DataTable();

$('#example tbody').on( 'click', 'tr', function () {
    console.log( table.row( this ).data() );
} );
0
Javascript1234567891011121314var table = $('#example').DataTable(); $('#example tbody').on( 'click', 'tr', function () {    var d = table.row( this ).data();         d.counter++;     table        .row( this )        .data( d )        .draw();} ); // Note that row().invalidate() could also be used for this example case
0
Javascript12345var table = $('#example').DataTable(); $('#example tbody').on( 'click', 'tr', function () {    console.log( table.row( this ).data() );} );
0
public String[] getRowAt(int row) {
     String[] result = new String[colNumber];

     for (int i = 0; i < colNumber; i++) {
         result[i] = table.getModel().getValueAt(row, col);
     }

     return result;
}
0

New to Communities?

Join the community