Add rows without fnAddData()?

Add rows without fnAddData()?

dr3xdr3x Posts: 12Questions: 1Answers: 0
edited January 2014 in General
I'm using a framework with templating to populate rows, is there a way to update dataTable() without using fnAddData();

I'm having the same issue as this guy - table renders fine initially but the content disappears on column sort.
Clicking Column Clears Contents... Consistantly
http://datatables.net/forums/discussion/comment/14483

The framework (Backbone Marionette) dynamically updates the rows with formatting.

Replies

  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    Basically no. You must use the DataTables API if you are going to manipulate the DOM otherwise DataTables doesn't know that anything has changed. If Backbone Marionette provides callback hooks you could do the API calls there.

    Allan
This discussion has been closed.