Page 1 of 1

[ANGULAR] Gantt: Custom Loader Start and Stop points identification

Posted: Fri Aug 02, 2024 7:53 am
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


Re: [ANGULAR] Gantt: Custom Loader Start and Stop points identification

Posted: Fri Aug 02, 2024 2:04 pm
by tasnim

Re: [ANGULAR] Gantt: Custom Loader Start and Stop points identification

Posted: Sat Aug 03, 2024 9:07 am
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


Re: [ANGULAR] Gantt: Custom Loader Start and Stop points identification

Posted: Sun Aug 04, 2024 3:27 pm
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