Redraw table (child rows)

Redraw table (child rows)

menashemenashe Posts: 178Questions: 42Answers: 2

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

  • kthorngrenkthorngren Posts: 20,800Questions: 26Answers: 4,862
    Answer ✓

    You will probably want to use rowCallback to update the rows after each draw. See this example which uses createdRow. You will want rowCallback instead as it runs for each table draw instead of just once.

    Kevin

  • menashemenashe Posts: 178Questions: 42Answers: 2

    Perfect! Thank you!

Sign In or Register to comment.