updating rows after table is done drawing.

updating rows after table is done drawing.

danieltablesdanieltables Posts: 4Questions: 0Answers: 0
edited January 2013 in DataTables 1.9
so i have a table that some language needs to be replaced from English to other language (and some other HTML tweaks).
I use jQuery for that and find the appropriate columns to update. however, to permanently update the content, i need to call fnUpdate (otherwise sorting, filtering, etc, will overwrite my changes)

[code]

$('#tf2_table_ss > tbody').find('tr').each(function()
{
cell_found = $(this).find('td.tf2-ss-c15');
oTable.fnUpdate('new language', oTable.fnGetPosition(cell_found.parent().get(0)), 3);
});

[/code]

however, fnUpdate will call fnDrawCallback and thats where i put my code in (i cannot put it into fnInitComplete because then oTable does not exists just yet)

is there any way to one-time update table AFTER its been created using fnUpdate (or is there better way?)
This discussion has been closed.