jquery - fnDraw is not redraw the datatable in ajax done request -
otable = $('#sldata').datatable({ "lengthmenu": [[10, 25, 50, 100, -1], [10, 25, 50, 100, 'all']], "order": [[ 0, "asc" ]], "pagelength": 10, 'processing': true, 'serverside': true, 'sajaxsource': '<?php echo base_url();?>dev.php/website/edit_categories_list', "columns": [null, null, null, null, null, {"orderable":false, "searchable": false}] });
this server side data table , trying redraw table after operation in ajax calling otable.fndraw();
in ajax done function not redraw datatable in advance
first destroy datatable object , try initialize datatable in ajax done function
otable.fndestroy(); $('#sldata').datatable();
try code, hope working.
Comments
Post a Comment