Same width across multiple tables

Same width across multiple tables

anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0
edited September 2015 in DataTables 1.10

HI,

I have 3 datatables on single page , one below the other.
ALl render same number of columns at on one event but they all render with different column widths. Every event returns different number of columns. i cannot fix the width for fix number of columns.

Can anyone help ?

This question has an accepted answers - jump to answer

Answers

  • anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0

    here is a screen shot of my tables
    http://postimg.org/image/6ma262ebx/

  • theslyguytheslyguy Posts: 3Questions: 1Answers: 1
    Answer ✓

    I have the same problem with width and I fixed it with the foolowing lines:

    'autoWidth: false,'
    'scrollX: true,'

    Then it will take in consideration the configuration you have made with 'columndefs'. For my part I'm losing the search field...

  • anandkulkarnianandkulkarni Posts: 9Questions: 3Answers: 0

    Thanks theslyguy

    thats one way. Also 'table-layout: fixed' worked for me.

This discussion has been closed.