javascript - How to update all data in jQuery.dataTables with client-side data? -



javascript - How to update all data in jQuery.dataTables with client-side data? -

i've been fruitlessly been trying jquery.datatables allow me update info in table using javascript. know has been discussed on before, haven't been able create of solutions i've seen work.

i have parameter called data represents info display in table. passed function.

i have thought way update info this:

// checked new info returned $table.data() afterwards $table.data(data); // info updated, redraw table. $table.fndraw();

nothing seems happen when above code runs. doing wrong?

i have no problem using fnupdate update info in individual rows, find particularly perplexing.

update: after giving more careful research, found can accomplish desired result doing following:

$table.fncleartable(); $table.fnadddata(data); $table.fndraw();

however, problem above user loses place in pagination , has navigate page on.

well issue faced allan suggestion worked high time me.

try :

using new api phone call draw() parameter false. in old api utilize fndraw likewise (and in fnadddata utilize parameters not redraw).

let me know in case .

javascript jquery jquery-datatables

Comments

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -