Hover and stripe don't appear to work together.

Hover and stripe don't appear to work together.

Keith_HKeith_H Posts: 54Questions: 19Answers: 1

Hi.

I have a problem with hover not highlighting rows correctly. I checked out this previous call https://datatables.net/forums/discussion/72181/table-hover-stopped-working and then modified the example to show my issue.

I have striped the table, but the hover doesn't work on all of the rows.
http://live.datatables.net/bikogaci/5/edit

Also, if possible, I would like to be able to get hover working correctly on all cells on all rows :
i. Sorted columns
ii. Tables with fixed columns.

Thank you.

This question has accepted answers - jump to:

Answers

  • allanallan Posts: 63,237Questions: 1Answers: 10,418 Site admin

    Hi,

    I'm actually working on this extra area at the moment to make it much more flexible (and it will address this issue as well). I'll post back later on when I've got the commit made.

    Allan

  • allanallan Posts: 63,237Questions: 1Answers: 10,418 Site admin
    Answer ✓

    Here we go with the nightly versions of DataTables and FixedColumns: http://live.datatables.net/bikogaci/6/edit .

    Allan

  • Keith_HKeith_H Posts: 54Questions: 19Answers: 1

    Thanks Alan.
    That's great.

  • Keith_HKeith_H Posts: 54Questions: 19Answers: 1

    I also use JqueryUI styling and the styling didn't work so I changed the css to add !important and then it worked.

    .table-hover > tbody > tr:hover > * {
    background-color: red !important;
    }

    Has this been updated too or won't this get done too? If it's been updated, are there nightly versions which can these also be downloaded?

    Thanks.

  • allanallan Posts: 63,237Questions: 1Answers: 10,418 Site admin

    The nightly files for jQuery UI styling are also up to date with this change: http://live.datatables.net/bikogaci/8/edit .

    Allan

  • Keith_HKeith_H Posts: 54Questions: 19Answers: 1

    Thank you for the update.

    The only remaining issue is that it doesn't highlight the fixed column(s), only the scrolling portion.

    Is this something you think it should do?

  • allanallan Posts: 63,237Questions: 1Answers: 10,418 Site admin
    Answer ✓

    Add !important: http://live.datatables.net/bikogaci/13/edit .

    Sorry I missed that before!

    Allan

Sign In or Register to comment.