Redraw table (child rows)
Redraw table (child rows)
I am using a modification of your nice solution to choose and highlight certain values from columns (https://live.datatables.net/teqebezo/1/edit).
In my case, I select and highlight the largest and smallest value from rows.
And it works great--using initComplete
as you did. When I expand the child rows, the colors appears.
However... If I edit one of the rows, the colors are not there.
What event (table or Editor) should I use for that?
This question has an accepted answers - jump to answer
Answers
You will probably want to use
rowCallback
to update the rows after each draw. See this example which usescreatedRow
. You will wantrowCallback
instead as it runs for each table draw instead of just once.Kevin
Perfect! Thank you!