fnDrawCallback doesn't word immediately
fnDrawCallback doesn't word immediately
kalagar
Posts: 3Questions: 2Answers: 0
hello, everyone. I have a loading spinner, when I use "preDrawCallback" to make it "TRUE", it works fine, but when I want to make it "FALSE" in "preDrawCallback" I have to focus on some input field or change browser tab to make it false;
this is my code :
"preDrawCallback": function (settings) {
console.log("SSSSSS =====>>>>> preDrawCallback");
vm.loading = true;
},
"fnDrawCallback": function (oSettings) {
// this log will show in console
console.log("EEEEEE =====>>>>> fnDrawCallback");
// but this line note work immediately
vm.loading = false;
},
how to make vm.loading
"TRUE" immediately without a focus on elements !!!
This discussion has been closed.
Answers
I don't understand what you mean by "focus on elements" I'm afraid. Can you link to a page showing the issue?
Allan
@allan I mean jquery focus() function.
unfortunately, my project has not uploaded yet and I'm working on it locally.
If you could use http://live.datatables.net or JSFiddle to create a test page showing the issue in that case, I'll try to help as best I can.
Allan