Rerender
Rerender
I have a rendering function which shows negative data numbers in red if a control value is true, and black if the control value is false.
When the checkbox which controls the value is changed, I want to rerender the rows in the datatable. Just calling draw(false) doesn't appear to do this because aoData.nTR data for the row is cached.
Is there any way to trigger a rerender, then redraw of the table rows.
e.g.
$('#checkbox').change( function() {
controlValue = this.val();
// ?? datatable.rerender();
dataTable.draw();
}
The colour change can be done using CSS but I'm more interested in a solution to the wider question.
Answers
Can you link to the page please. I don't quite understand the wider context myself.
Allan