Finding Change Event of Ajax Datatable (Not From Filter)
Finding Change Event of Ajax Datatable (Not From Filter)
svbapat
Posts: 1Questions: 1Answers: 0
I am using ajax datatable plugin of jquery where I am firing "draw.dt" event everytime datatable is redrawn to find change on datatable
I want to differentiate between if the event(datatable redrawn) is fired on functions success or from Filter.
$('.dataTable', "#formElement").on('draw.dt', function () {
// Custome Logic
});
This discussion has been closed.
Answers
if you add the evt object to your code, you can examine it and see if there is a difference, maybe the target, maybe something else that would work for you to tell the difference
$('.dataTable', "#formElement").on('draw.dt', function (evt) {
console.log(evt);
// Custome Logic
});