Paging buttons disabled but still clickable & processing...

Paging buttons disabled but still clickable & processing...

MirMir Posts: 27Questions: 7Answers: 1

I am using server-side paging in my data table which is working fine. However when I am in tha last page, the "Next" & "Last" buttons are greyed out as expected, but on click of those, its still showing "Processing..." message. Looks like the ajax call is being triggered which should not happen.

Here is my data table:

function initTestTable(){
    myTable = $('#testTable').dataTable({
   "processing": true,
   "serverSide": true,
   "ajax": {
       "url": "testTableData.html",
       "type": "GET",
   },
   "columnDefs": [ {
       "targets": 0,
       "data": "code",
       "render": function ( data, type, full ) {
           return '<a href="'+data+'">'+data+'</a>';
         }
     },
     {
       "targets": 1,
       "data": "description",
       "render": function ( data, type, row, meta ) {
           return data;
       }
     }]
 });
}

Am I missing some option Or how can I stop that behavior? Please suggest

This discussion has been closed.