nguyenminh

Datatable reload

$('#iDdatable').dataTable({
    "ajax": {
        "url": "apicall",
        "dataType": "json",
        "cache": false,
        "dataSrc": ""
    },
    "order": [[1, "asc"]],
    columns: [
                { 'data': 'id' },
                { 'data': 'name' },
                { 'data': 'Salary', render: $.fn.dataTable.render.number(',', '.', 0, '$ ') }
            ]
});

$('#iDdatable').DataTable().ajax.reload();
0 Comments for "Datatable reload"

Leave a Reply

Your email address will not be published. Required fields are marked *