bFilter does not filter new cells

bFilter does not filter new cells

kaippallykaippally Posts: 4Questions: 0Answers: 0
edited February 2014 in DataTables 1.9
I have a HTML table with some rows of data. I then update some cells via AJAX, but the new cells are not being filtered.

Please help.

Replies

  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    Please link to a test case as required in the forum rules.

    I'm going to assume you aren't updating the cells using the DataTables API (although without a test case I'm just guessing). Please use the DataTables API - specifically fnUpdate in 1.9- to update cells.

    Allan
  • kaippallykaippally Posts: 4Questions: 0Answers: 0
    My table is this

    [code]

    VehiclesStatus


    [4525907] GF-68138G-Hiace status
    [4526122] GF-73239M-Hiace status
    [7392423] AlThameem-85362A-Innova status




    $(document).ready(function() {
    var oTable = $('#live_vision').dataTable();

    } );
    [/code]


    If I want to update the cell id [code]status_4525907[/code] how would I do it?
  • allanallan Posts: 63,679Questions: 1Answers: 10,498 Site admin
    For the cell ID you would need to directly manipulate the DOM, like you would with a plain HTML table, since DataTables doesn't really care about the id. However, for the HTML content of the cells, use fnUpdate .

    Allan
This discussion has been closed.