DataTable column header size smaller than data size on load

DataTable column header size smaller than data size on load

ak11ak11 Posts: 14Questions: 6Answers: 0

Hello,

After my DataTable loads, the formatting seems to be messed up.

The table headers are of much shorter length than the data in the rows of the columns.

After I click on one of the headers, all headers get set to required length.

Thanks,

Answers

  • kthorngrenkthorngren Posts: 21,166Questions: 26Answers: 4,921

    Sounds like you need to use columns.adjust() as shown in this example.

    Kevin

  • ak11ak11 Posts: 14Questions: 6Answers: 0

    This was most likely due to DataTable not having been initialised at the correct place.

    Fixing that seems to have fixed this issue.

This discussion has been closed.