Redraw table (child rows)
Redraw table (child rows)
![menashe](https://secure.gravatar.com/avatar/dc1da7c78a76b079289646e56a3a2afb/?default=https%3A%2F%2Fvanillicon.com%2Fdc1da7c78a76b079289646e56a3a2afb_200.png&rating=g&size=120)
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!