column width

column width

wuwuwuwu Posts: 52Questions: 17Answers: 0

Hi, I am having issues on column width when I disable the orderable. Do you have any idea?
"width": "180px"
"orderable": false
When i remove orderable, it display correctly.
Thanks

This question has an accepted answers - jump to answer

Answers

  • kthorngrenkthorngren Posts: 21,726Questions: 26Answers: 5,027
    Answer ✓

    Based on what you pasted you have a syntax error. Looks like you are missing a comma separating the options:

    "width": "180px",  // Comma here
    "orderable": false
    

    If this is not the case then we will need to see the problem to help debug. Please post a link to your page or a test case replication the issue.
    https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case

    Kevin

This discussion has been closed.