I have a datatable with few rows, I want to add new row in table :
var oTable = $('#StudentsTable').dataTable();
Table2.fnStandingRedraw();
when I init the dataTable I add :
"bProcessing": true,
"bServerSide": true,
"bDestroy": true,
"fnFilter": true,
'bLengthChange': true,
'bPaginate': true,
'bStandingRedraw': true,
after ajax submit I want to redrow the table:
submitHandler: function(form) {
var $modal = $('#ajax-modal');
$modal.modal('loading');
$(form).ajaxSubmit({
dataType: 'json',
success: function(result) {
if (result.Success) {
if (result.Data.Action == "add") {
var oTable2 = $('#StudentsTable').dataTable();
/*=>here is Call redraw */ oTable2.fnStandingRedraw();
}
here it give me error: Uncaught TypeError: Object [object Object] has no method 'fnStandingRedraw'
some suggestions?