Quantcast
Channel: Recent Discussions — DataTables forums
Viewing all articles
Browse latest Browse all 82115

Deleting the row Dynamically

$
0
0
Hi,

I need to delete the row, within the "fnRowCallback" function which will be generated dynamically.
example scenario, I am generating the row with ids within the fnRowCallback function, in that i want to delete the specific row by checking some condition for example : if if(aData[0]=='139') i need to delete that row should not allow to display in tha datatable and further it should not affect the pagination and other properties in datatable.

ex code :"fnRowCallback": function( nRow, aData, iDisplayIndex, iDisplayIndexFull ) {
if(aData[0]=='139'){
$('#example_'+sel_tab+'_'+id).dataTable().fnDeleteRow( 0 );
}

Please help me on this

Viewing all articles
Browse latest Browse all 82115

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>