After deleted of my last record of my data my table not getting refreshed.

After deleted of my last record of my data my table not getting refreshed.

karthikvjkarthikvj Posts: 1Questions: 1Answers: 0
edited October 2015 in Free community support

Hi friends,

I am using datatable, when i deleted my last record, i want to refresh my datatable is it possible. I have include my code below

var table = $('#grid');
table.dataTable({
"language": {
"aria": {
"sortAscending": ": activate to sort column ascending",
"sortDescending": ": activate to sort column descending"
},
"emptyTable": "No data available in table",
"info": "Showing1 START to END of TOTAL entries1",
"infoEmpty": "No entries found",
"infoFiltered": "(filtered1 from MAX total entries)",
"zeroRecords": "No matching records found",
"search": "Search : ",
"lengthMenu": " MENU records",
"paginate": {
"previous":"Prev",
"next": "Next",
"last": "Last",
"first": "First"
}
},
"bRetrieve": true,
"bStateSave": true,
"columns": [
{
"orderable": true
},
{
"orderable": true
},
{
"orderable": true
},
{
"orderable": false
}
],
"lengthMenu": [
[5, 15, 20, -1],
[5, 15, 20, "All"]
],
// set the initial value
"pageLength": 5,
"pagingType": "bootstrap_full_number",
"columnDefs": [{
'orderable': false,
'targets': [0]
}, {
"searchable": false,
"targets": [0]
}],
"order": [
[1, "asc"]
]
});

Is it possible to refresh datatable ?

This discussion has been closed.