Call AJAX to load data only if datatable in empty
Call AJAX to load data only if datatable in empty

I have a tab, in which i am loading datatable using AJAX,
1 - Is there a way in datatable to check if the datatable is empty then call AJAX to load table, if it is not empty then dont reload table?
2 - Is there a way i can provide a refresh button which will force the datatable to load data?
1 - Is there a way in datatable to check if the datatable is empty then call AJAX to load table, if it is not empty then dont reload table?
2 - Is there a way i can provide a refresh button which will force the datatable to load data?
This discussion has been closed.