Table Width Adjustment
Table Width Adjustment
rovers_boy
Posts: 11Questions: 0Answers: 0
I tried searching for this in this forum, but couldn't find any solution. Here's what I am looking for:
Is there a way for DataTables to adjust it's width based off number of columns dynamically without taking up entire space (width="100%") ? For example, if my DataTable has 2 columns, I expect table to have shorter width. Currently, it is taking up enite white space and making it one big table with two columns separated widely. I tried setting "bAutoWidth": false, but to no avail.
Basically, I expect DataTable to adjust dynamically based on numbers of columns without specifying any set width.
Thanks!
Is there a way for DataTables to adjust it's width based off number of columns dynamically without taking up entire space (width="100%") ? For example, if my DataTable has 2 columns, I expect table to have shorter width. Currently, it is taking up enite white space and making it one big table with two columns separated widely. I tried setting "bAutoWidth": false, but to no avail.
Basically, I expect DataTable to adjust dynamically based on numbers of columns without specifying any set width.
Thanks!
This discussion has been closed.
Replies