How to select all the lines ?

How to select all the lines ?

erixerix Posts: 4Questions: 2Answers: 0

Hi,
Do you know how to select all the lines ? I tried something like this but it doesn't work :
oTable.rows().each(function(){
$(this).addClass('selected');
oTable.draw();
});

Answers

  • erixerix Posts: 4Questions: 2Answers: 0

    I finally found the solution which is very simple :

    oTable = $('#my_table').DataTable({ ....});
    oTable.rows().select();

This discussion has been closed.