my server side data table width gets half sometimes dont know why, any solution??
my server side data table width gets half sometimes dont know why, any solution??
Ankit Bisht
Posts: 2Questions: 1Answers: 0
This discussion has been closed.
Answers
this.dt = $("#tblReport").DataTable({
responsive: true, // for resposiveness
processing: true, // for show progress bar
serverSide: true, // for process server side
filter: false, // this is for disable filter (search box)
orderMulti: false, // for disable multiple column at once
ordering: false,
stateSave: false,
this is the code
I suspect it's something to do with the asynchronous nature of the server-side call - your page is being setup before the data is returned so your CSS/code isn't allowing the table expansion.
We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin