Is it possible to have an animated loading text / spin while loading data to my Datatables also for my Delete Columns is it possible to display confirmation pop up?
$(document).ready(function() {
$('#ProvTable').DataTable({
"ajax": {
"url": "/Users/Prov",
"type": "Get",
"data": { "idUser": "@userid", "idCity": "@cityId" },
"datatype": "json"
},
"columns": [
{ "data": "Id", "visible": false, "searchable": false },
{ "data": "Name", "autowidth": true },
{ "data": "City", "autowidth": true },
{ "data": "UID", "autowidth": true },
{
"title": "Delete",
"data": "Id",
"searchable": false,
"sortable": false,
"render": function (data, type, full, meta) {
return '<a href="@Url.Action("Delete", "Users")?id=' + data + '" class="editUser"><span class="glyphicon glyphicon-trash btn-sm btn-danger"></span></a>';
}
},
]
});