How to change unfiltered rows background color instead of deteting rows
How to change unfiltered rows background color instead of deteting rows
hitachi_kawa
Posts: 2Questions: 1Answers: 0
I want to change background color of the rows that do not hit.
But I do NOT want to detele the rows.
Like the image below. Please help.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Hi @hitachi_kawa .
That's not possible, I'm afraid. The searching/filtering is fundamental within DataTables, it affects the display and also internal objects - so it's wouldn't be just a case of changing the colour.
Cheers,
Colin
@colin
Thank you for your answer.
I understand.
hitachi_kawa
Hi @hitachi_kawa ,
I was thinking about this again, and decided I could get it behaving like you want! Take a look at this example.
You need a custom search element, which does still function with the standard search, but it behaves like your screenshot!
Hope that does the trick! Sorry for dismissing it earlier - I shouldn't reply to blog posts before the coffee hits
Cheers,
Colin
Some final tweaks here: http://live.datatables.net/bopuzato/1/edit