How to put an id in the row to add to fnAddData

How to put an id in the row to add to fnAddData

kcokco Posts: 1Questions: 0Answers: 0
edited May 2011 in General
Hi,

First of all sorry for my English


I´m adding a row:

var a = oTable.fnAddData({ "add message" ,"","es","ALL","%",""]);
var oSettings = oTable.fnSettings();
var nTr = oSettings.aoData[a[0] ].nTr;

And then I add the attribute

jQuery("#gamesSuccesfultable > tbody > tr").eq(0).attr("id",filasNuevas++);

Everything works fine until I register a new row and then lost the id of the previous rows discharged


Please could you help me?


Thank u!!

Replies

  • allanallan Posts: 63,522Questions: 1Answers: 10,473 Site admin
    Can't you just do:

    [code]
    var nTr = oSettings.aoData[a[0] ].nTr;
    nTr.id = "whatever_the_id_is";
    [/code]?

    Allan
This discussion has been closed.