Datatable 1.9.4 edit row with fnUpdate without redraw

Datatable 1.9.4 edit row with fnUpdate without redraw

cecco74cecco74 Posts: 11Questions: 3Answers: 0

Hi to all,
I would like edita a row without redraw... I use https://legacy.datatables.net/ref#fnUpdate and the function work like this;

oTable.fnUpdate( 1, 2, 3, 4, 5);
1 = {object|array|string}: Data to update the cell/row with
2 = {node|int}: TR element you want to update or the aoData index
3 = {int}: The column to update (set to undefined to update the whole row)
4 = {bool} [default=true]: Redraw the table or not
5 = {bool} [default=true]: Perform pre-draw actions or not

Example:
oTable.fnUpdate( 'Example update', 0, 0); // Update Single cell (0,0) and redraw
oTable.fnUpdate( 'Example update', 0, 0, false); // Update Single cell (0,0) and NOT redraw
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1 ); // Update Row 1 and redraw

And if i want to update without redraw ???
oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1, ???, false ); // Update Row 1 and NOT redraw

Thanks

Answers

  • cecco74cecco74 Posts: 11Questions: 3Answers: 0

    I find it... oTable.fnUpdate( ['a', 'b', 'c', 'd', 'e'], 1, undefined, false );

This discussion has been closed.