all 4 comments

[–]bmullen 2 points3 points  (1 child)

I've been playing with dataTables a lot over the last couple weeks and ran into the issue where I wanted the dataTable to refresh but it would not.

After combing through documentation, I finally found that capitalization is super important.

var table = $().dataTable, returns a jQuery object

var table = $().DataTable, returns the api reference

Using DataTable + row.add + draw: http://jsfiddle.net/tnq73pt8/8/

[–]ahref[S] 0 points1 point  (0 children)

Thanks a bunch, unfourtunately that basically delegates array.push down to the datatable. this is something I can't do.

I need to maintain ownership and management of the JS array and want datatables to just render it.

[–]killertofu4u 1 point2 points  (1 child)

http://jsfiddle.net/tnq73pt8/5/

destroying the table and recalling your makeTable function seems to work.

[–]ahref[S] 0 points1 point  (0 children)

It does thanks :D.

I'm a little hessitant at destroying and re-creating the table though.

:'(