delete row

delete row

firatkucukfiratkucuk Posts: 4Questions: 0Answers: 0
edited June 2010 in General
Hi,
fnDeleteRow doesn't delete data from aoData.

fnDeleteRow with third optional (is null) parameter makes related row of aoData null.
and i get an an exception after calling getNodes function.

shouldn't fnDeleteRow delete the releated data?

Replies

  • firatkucukfiratkucuk Posts: 4Questions: 0Answers: 0
    edited June 2010
    I deleted the item like this:

    [code]
    var data = alarmTable.dataTableSettings[0].aoData;
    var pos = alarmTable.fnGetPosition(this);
    alarmTable.fnDeleteRow(this);
    delete data[pos];
    [/code]

    but after that fnAddData throw exception.
  • firatkucukfiratkucuk Posts: 4Questions: 0Answers: 0
    My application is online log viewer. I should delete old nth. values.
    And should delete the data because of ram usage.
  • allanallan Posts: 63,498Questions: 1Answers: 10,471 Site admin
    DataTables 1.7 (try the beta :-) ) now does delete from aoData. The reason it didn't before was because originally (way back in the 1.0 days) didn't think anyone would be accessing aoData, so it was faster to just null the index, rather than re-inidexing the whole display arrays. However, as aoData is accessed (not unreasonably!) I've decided to change it's operation in 1.7: http://datatables.net/new/1.7

    Regards,
    Allan
  • firatkucukfiratkucuk Posts: 4Questions: 0Answers: 0
    Thanks a lot.
    It's much more better now.
This discussion has been closed.