fnAddData function is slow (Firefox 19.0.2)

fnAddData function is slow (Firefox 19.0.2)

nirpelednirpeled Posts: 1Questions: 0Answers: 0
edited March 2013 in Bug reports
Hi,

I've noticed that when using the fnAddData function to add data to the table, the process is really slow and sometimes will cause Firefox (version 19.0.2) to freeze until process is completed - the amount of data I've added is ~350 row with 7 columns for each row, I believe that fnAddData is not supposed to be used with that amount of data but then again maybe it is and it's a bug?

NOTE: I'm using version 1.9.4.

Thanks :)

Nir

Replies

  • prasathmprasathm Posts: 2Questions: 0Answers: 0
    Set second parameter to false in fnAddData .
    Otherwise the table will be redrawn every time which is slow.

    var localTable = $('#myTable').dataTable();

    for (var i= 0; i< 2500; i++)
    {

    localTable .fnAddData(['1','2','3','4','5','6','7'],false);
    }
    localTable .fnDraw();
This discussion has been closed.