When first DataTable loaded its alignment is out not fit according to screen size .
When first DataTable loaded its alignment is out not fit according to screen size .
bilalusuf93
Posts: 1Questions: 1Answers: 0
Hey, friends, I am using serverside datatbale in asp.net, when I click on button DataTable is bound , it is not showing according to screen size, but as I click on any of the sorting columns it just fits according to screen size
This discussion has been closed.
Answers
If the Datatable is initially hidden when loaded you probably will need to use
columns.adjust()
to have Datatables recalculate the column widths when its made visible. If this doesn't help then we would need a link to your page or a test case to help troubleshoot.https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin