Mutiple DataTables on same page
Mutiple DataTables on same page
Currently I am able to display single data table on one page and data is being fetched from server side. Also doing some customized task like either all rows/columns or selected rows/columns will be exported to different formats viz pdf,excel etc.
Now I want to show multiple tables on same page so that all customized work that was applicable on single table should be applicable on all tables independently.
So my questions are as given below.
1) Is it possible to show mutiple tables on single page? if yes then how to provide different if for each table. As currently there is single id for one table and all customized code is written using this table id.
2) For each table data, do I need to mutiple server request to fetch data or single request can server the purpose.
Any help will be appreciated.
Thanks in advance.
Answers
Example.
Then use different ids :-). Each id must be unique on the table.
If you want to populate multiple tables with a single request you would need to make the Ajax request yourself and then use
rows.add()
ordata
to populate the tables.Allan