Is there anyway I can control sort and paging based on user confirmation?
Is there anyway I can control sort and paging based on user confirmation?
vin12
Posts: 2Questions: 1Answers: 0
Hi,
I would like to control(perform or not to perform) sort and page events based on user confirmation.
I would like to trigger a user confirmation dialog based on user input Yes/No event should continue/stop.
Is there anyway I can achieve this using Datatable API version "1.10.9".
Thanks in advance,
Vin.
This discussion has been closed.
Answers
What would be the expected result of "stopping" a sort?
Hi,
Not sure if I am able to answer your question, but I if user selects no in the confirmation dialog sort operation should not be performed.
I have tried the following but without success.
$('#exampleTable th').click(function(e) {
if(!false){//consider this false from confirmation dialog
e.preventDefault();
e.stopPropagation();
}
});
Thanks for your response!
Regards,
Vin.