fnDeleteRow problem

fnDeleteRow problem

laurentylaurenty Posts: 4Questions: 0Answers: 0
edited June 2011 in General
When calling fnDeleteRow using either an index or a node nothing happens.
I tried doing table.fnDeleteRow(1, null, true) (hardcoded 1 just for testing) and table.fnDeleteRow(tr, null, true) and in both case it returns an object containing a "nTr" property that appears to point to the right row, but the row isn't removed from the table.

What am I missing? I'm using jQuery 1.5.2 and DataTables 1.7.6

Thanks

Replies

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Seems to work just fine for me - I've been working with fnDelete row a fair bit over the last few days. Can you link us to your example please?

    For example on this page: http://datatables.net/release-datatables/examples/basic_init/zero_config.html , if you open the Javascript console and punch in:

    [code]
    $('#example').dataTable().fnDeleteRow( $('tbody tr:eq(0)')[0] );
    [/code]

    The first row is removed.

    Allan
This discussion has been closed.