Reload or refresh dataTables "data:data" not sSourceAjax

Reload or refresh dataTables "data:data" not sSourceAjax

YudistiraYudistira Posts: 10Questions: 4Answers: 0

Hi,

I'm using json encode from the same page my dataTables and load data using "data": data, not "sSourceAjax". It's easy for me to reload data or refresh if I using "sSourceAjax" (in this case oTable.Reload.Ajax) , but how reload data or refresh if using "data": data??? Please help... :(

my code

var data=<? echo json_encode($data) ?>;

var oTable = $('#t_ter').DataTable({
                "deferRender": true,
                "processing": true,
                        "data": data,
                "responsive": true,
                "scrollY": calcDataTableHeight(),
                "pagingType": "full_numbers",
                "fnRowCallback": function( nRow, data, iDisplayIndex ) {
                                
                                 //set column
                              
                                 }
});

This discussion has been closed.