Hello, Print Table Issue

Hello, Print Table Issue

nayannayan Posts: 5Questions: 5Answers: 0

I have three table Example1, Example2 and Example3, on one page all working proper but i have a print button
working functionality:
1. i have three radio buttons A, B and C
->> when i click on radio A table Example1 Will display

->> when i click on B table Example2 Will display

->> when i click on C table Example3 Will display

i want print current displayed table on click of one of radio

$(document).ready(function() {

var table = $('table.display').DataTable();
var tt = new $.fn.dataTable.TableTools( table, {
    sRowSelect: 'single'        
}); 
$( tt.fnContainer() ).insertAfter('a.infos');

} );

Answers

  • allanallan Posts: 63,689Questions: 1Answers: 10,500 Site admin

    Can you please link to a test case showing the issue, as per the forum rules.

    I have a feeling you'll need to initialise three different instances of TableTools - one for each table as the TableTools API and instance constructor is not multi-table aware.

    Thanks,
    Allan

This discussion has been closed.