Hi ,
I have a tree, if you select any item from that tree , it causes a datatable to be loaded. I am also using a spinning icon/progressbar to denote when data is loading to the datatable.
However, I am not able to use the spinning icon dynamically. I am setting a hardcoded 2 seconds for it. Depending on how heavy or light data I have the spinning icon either keeps spinning or stops spinning.
How can I make it dynamic so that it stop when data is fully loaded ?
My snippet is here : Code Snippet
Thanks.