fnUpdate help
fnUpdate help
Could someone help me use this correctly?
I have an array that I am trying to insert at a node.. so my code looks something like this:
var aiRow = oTable.fnAddData( [....array...] , false);
var nRow = oTable.fnSettings().aoData[ aiRow[0] ].nTr;
....
oTable.fnUpdate( [...array...] , nRow, false);
What am I passing wrong?
Thank you so much,
Shane.
I have an array that I am trying to insert at a node.. so my code looks something like this:
var aiRow = oTable.fnAddData( [....array...] , false);
var nRow = oTable.fnSettings().aoData[ aiRow[0] ].nTr;
....
oTable.fnUpdate( [...array...] , nRow, false);
What am I passing wrong?
Thank you so much,
Shane.
This discussion has been closed.
Replies
Not sure :-). What's not working about it? A JS error, or unexpected interaction?
One thing to note is that the 'false' as arg3 for fnUpdate looks odd. It should perhaps be fnUpdate( [], nRow, null, false )? http://datatables.net/api#fnUpdate
Regards,
Allan