Call AJAX to load data only if datatable in empty

Call AJAX to load data only if datatable in empty

kulkarni_ashkulkarni_ash Posts: 35Questions: 8Answers: 0
edited January 2012 in General
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?
This discussion has been closed.