Quantcast
Channel: Free community support — DataTables forums
Viewing all articles
Browse latest Browse all 35273

How to reset filter options to include newly added row

$
0
0

Hi,

I am having a datatable created like below

$('#filterTable').dataTable({ "sDom": '<"top"l>rt<"bottom"ip><"clear">', "aoColumnDefs": [{"bSortable": false, "aTargets": [5]}] }).columnFilter({ aoColumns: [null, {type: "select"}, {type: "select"}, {type: "select"}, {type: "select"}, null], sPlaceHolder: "head:after" });

At loading time it has some data and select filter is displaying the record according to the current rows.

I am adding new rows like "table.oApi._fnAddData(oSettings, json.data[i]);"

Now i need the filter option to have the updated data according to new row also.

Thanks.


Viewing all articles
Browse latest Browse all 35273

Trending Articles