Row Order Problem
Row Order Problem
Hello,
I am filling a datatble with following code:
$.each(responseFromServer, function() {
$('#table').dataTable().fnAddData(getRow(this));
console.log('in loop'+this.subject+'\n');
});
i can see on console,
in loop first
in loop second
in loop third
but after that in datatable
rows come as
second
first
third
What may cause this, i do not think i can provide a regeneration js fiddle.
I am filling a datatble with following code:
$.each(responseFromServer, function() {
$('#table').dataTable().fnAddData(getRow(this));
console.log('in loop'+this.subject+'\n');
});
i can see on console,
in loop first
in loop second
in loop third
but after that in datatable
rows come as
second
first
third
What may cause this, i do not think i can provide a regeneration js fiddle.
This discussion has been closed.