Adding multiple elements to fngetNodes()

Adding multiple elements to fngetNodes()

ssurajita111ssurajita111 Posts: 14Questions: 6Answers: 0

Hi Allan,

I have an array containing few <tr> elements. I want to add this array to fnGetNodes(i.e. oTable.fnGetNodes()). Can we do that without any performance issue?

As I have seen fnUpdate is taking lot of time and I believe fnAddRow is also gonna take the same time. please let me know if any alternative solution is there.

Soumya

Answers

  • allanallan Posts: 63,516Questions: 1Answers: 10,472 Site admin

    Adding the tr elements to the array returned from fnGetNodes() wouldn't add them to the table. They would just add them to that array.

    If you want to add rows efficiently, use the new API - rows.add().

    Allan

This discussion has been closed.