Table rendering not properly - rows odd and even bug in layout. Where to look for the error?

Table rendering not properly - rows odd and even bug in layout. Where to look for the error?

ChromChrom Posts: 44Questions: 15Answers: 1
edited February 2022 in Free community support

The first three columns in each row have one color then the others change the color. I tried to set correct it with !important but it doesnt do it. It also seems like the first three have a hower effect and then the hover effect disappears.

When I click on sorting for these not properly rendered colors it will rerender them and they will be displayed properly.

Any idea where the problem could be?

Answers

  • ChromChrom Posts: 44Questions: 15Answers: 1
    "order": [[ 0, 'asc' ], [ 1, 'asc' ], [ 2, 'asc' ]],
    

    it seems this pre sorting is the issue.

  • colincolin Posts: 15,240Questions: 1Answers: 2,599

    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,351Questions: 26Answers: 4,955

    Looks like you are using the default Datatables styling and have the classname display on the table tag. The styling docs explains what this means. Sounds like you want to remove the order-column class. The display class enables the order-column class. Try adjusting the classnames on your table tag.

    Kevin

Sign In or Register to comment.