Premium support for our pure JavaScript UI components


Post by shashank.yadav »

Hi Team,

Hope you are doing well. It's been long reaching out to you guy, certainly we are happy customer of Gantt. :)

Query: We have custom loader based on our application need; we start the loader as soon as we hit our backend API call to get Gantt data. We are stopping loader on event "dataready".

Actual: But we have observed Gantt takes time to bind data into DOM.

Expected: We want to stop loader, once DOM binding is done.

Do you think we have any event, where we can stop loader after binding of data into DOM?
or
Any other approach you want us to suggest for same, please?

Thanks,
Shashank Yadav
Hatch Digital


Post by tasnim »


Post by shashank.yadav »

Hello Tasim,

Load event hits before records start to binding to DOM.
And event-paint is something else, might be risky to use, as it might trigger for various unknown widgets.

Query: Do you think we have any event, where we can stop loader after binding data into DOM?

Meanwhile I am also exploring other events, do you have any other suggestion, please?

Thanks,
Shashank Yadav
Hatch Digital


Post by shashank.yadav »

Thanks for your response Tasim, much appreciated.

I have found the solution, event "commitFinalized" helped us for same.

Thanks,
Shashank Yadav
Hatch Digital


Post Reply