datatable header misaligned

datatable header misaligned

SonicMast3rSonicMast3r Posts: 2Questions: 1Answers: 0

Hi i have a problem with my gridview when it load the header are misaligned but when i click on one of the colum to sorte it they align. I noticed that the width its 100px in the hader when it load.

my table is the with this proprities:
"autoWidth": true,
"info": false,
"paging": false,
"searching": false,
"scrollY": "30vh",
"scrollCollapse": true

P.S. i am sorry for my bad english.

Answers

  • colincolin Posts: 15,237Questions: 1Answers: 2,598

    Hi @SonicMast3r ,

    It sounds like you need to add an columns.adjust(), possibly in initComplete.

    If that doesn't help, 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

  • SonicMast3rSonicMast3r Posts: 2Questions: 1Answers: 0

    Hi @colin i cannot put the link to the page here because its private project when i have a few minutes i will try to make a js fiddle so maybe you can help me.

This discussion has been closed.