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

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -