Once I add autoWidth: false the table stops being sortable.

Once I add autoWidth: false the table stops being sortable.

Sasori7Sasori7 Posts: 20Questions: 8Answers: 0

I have an already rendered table that I added datatables to, using the basic installation instructions.
The default truncate the table. I tried to 'force' it to stay with typical html 'width' options, but they get overridden.
if I add autoWidth: false or columns, the sorting gets turned off.
** $('#example').DataTable( {
"columns": [
null,
null,
null,
null,
{ "width": "50%" }
]
} );**

If I decide to change one thing, do I have to go and set everything else?

Answers

  • colincolin Posts: 14,365Questions: 1Answers: 2,444

    I'm sorry, but I'm not clear what the issue is. 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

  • kthorngrenkthorngren Posts: 16,400Questions: 25Answers: 3,891

    Look for errors in your browser's console.

    Kevin

Sign In or Register to comment.