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

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -