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

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

Sasori7Sasori7 Posts: 26Questions: 10Answers: 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: 15,240Questions: 1Answers: 2,599

    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: 21,391Questions: 26Answers: 4,961

    Look for errors in your browser's console.

    Kevin

Sign In or Register to comment.