Get Columns Width for Export or Print
Get Columns Width for Export or Print
yasserlotfy
Posts: 8Questions: 3Answers: 0
I have a question about the ability to export DataTables or print it with the same width values of columns, and not generating new width or auto width values ?
Example:
<table id="students" class="table table-bordered table-striped table-hover data_table table-fixed-header responsive no-wrap">
<thead>
<tr>
<th class="all" width="5%">ID</th>
<th class="all" width="20%">Name</th>
<th class="min-tablet" width="10%">Source</th>
<th class="desktop nosort" width="42%">Course</th>
<th class="min-phone-l" width="7%">Status</th>
<th class="min-tablet-l" width="10%">Staff</th>
<th class="all nosort nosearch noexport" width="6%">Action</th>
</tr>
</thead>
<tbody id="students-rows">
</tbody>
<tfoot>
<tr>
<th>ID</th>
<th>Name</th>
<th>Source</th>
<th>Course</th>
<th>Status</th>
<th>Staff</th>
<th>Action</th>
</tr>
</tfoot>
</table>
This discussion has been closed.
Answers
i have a similar problem, i want to print the table with the align what i used on it(right), but when i print that, by default is align left