Refresh aodata

Refresh aodata

cbalmefrezolcbalmefrezol Posts: 11Questions: 0Answers: 0
edited October 2010 in General
Hi,

I search a method to refresh all aoData, with actual datas in the

I create this function:

[code]
jQuery.fn.dataTableExt.oApi.fnDataUpdateTableAll = function ( oSettings, nNodes)
{
$(nNodes).find("TR").each( function(i) {

var dataRow = oSettings.aoData[iRowIndex]._aData;
$(nRowObject).find("TD").each( function(i) {
dataRow[i] = $(this).html();
} );
});
};
[/code]

[code]oTable.fnDataUpdateTableAll(oTable.oSettings,oTable.fnGetNodes());[/code]

But, don't work...

Have you an idea?

Thk, Laurent

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Refresh it from where - the HTML it looks like here? Interesting approach, but I'd suggest doing it with fnUpdate instead: http://datatables.net/api#fnUpdate . This will take care of all of the internals for you.

    Allan
This discussion has been closed.