Search fails after fnUpdate

Search fails after fnUpdate

martymarty Posts: 1Questions: 0Answers: 0
edited November 2011 in Bug reports
Hi,

I'm using fnUpdate() to insert data into the last column of my table rows.
The data is asynchronously loaded via ajax. (Some URLs are checked whether they are online and either a green or a red traffic light will show up).
[code]dataTable.fnUpdate(data, k, 7);[/code]
But: After a row was updated via fnUpdate() it is no longer indexed by the search and can't be found anymore.
So once all rows are updated the search will display nothing, no matter what you type in.

I tried to work around this problem and used standard javascript methods.

[code]$.each(dataTable.fnGetNodes() ,function(k,v) {
... ajax call
v.cells.item(7).innerHTML = data;
});[/code]
The traffic light shows up and the updated row is still indexed, but the column isn't sortable.
It seems the inserted content is not indexed.

I also played around with the 4. and 5. parameter of fnUpdate() and did a manual fnDraw() after each ajax call, but it isn't working.

Is there any solution I can update a cell via ajax AND search for the content of this row AND sort this column?

Thanks, Marty
This discussion has been closed.