Binding To Processing - Showing A Bootstrap Modal
Binding To Processing - Showing A Bootstrap Modal
The following used to work fine in older version of datatables... now it seems to be ignored. What am I doing wrong... I cannot seem to turn on "bServerSide" in the table config or no data loads using any of the editor data source php script... I suspect it has something to do with that. I can still see the 'processing' text rendered by DT but I want to override that with my own BS modal.
$('#mytable').bind('processing',
function (e, oSettings, bShow) {
if (bShow) {
myApp.showPleaseWait();
} else {
myApp.hidePleaseWait();;
}
});
I've also tried:
$('#mytable').dataTable().bind('processing',
function (e, oSettings, bShow) {
if (bShow) {
myApp.showPleaseWait();
} else {
myApp.hidePleaseWait();;
}
});
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
You need to use the
.dt
namespace with DataTables events now: http://live.datatables.net/lekuloha/1/edit . This was introduced to prevent conflicts with other libraries triggering custom events.There is a note about this in the manual. I missed it from the upgrade notes (apologies), I'll add that in momentarily.
Allan