fnDrawCallback doesn't word immediately

fnDrawCallback doesn't word immediately

kalagarkalagar Posts: 3Questions: 2Answers: 0
edited May 2018 in Free community support

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 !!!

Answers

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    I don't understand what you mean by "focus on elements" I'm afraid. Can you link to a page showing the issue?

    Allan

  • kalagarkalagar Posts: 3Questions: 2Answers: 0

    @allan I mean jquery focus() function.
    unfortunately, my project has not uploaded yet and I'm working on it locally.

  • allanallan Posts: 63,075Questions: 1Answers: 10,384 Site admin

    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

This discussion has been closed.