Rerender

Rerender

vogomatixvogomatix Posts: 38Questions: 3Answers: 7
edited October 2014 in DataTables 1.10

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

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin

    Can you link to the page please. I don't quite understand the wider context myself.

    Allan

This discussion has been closed.