This is a migrated thread and some comments may be shown as answers.

Integrate with Grid

2 Answers 159 Views
Loader
This is a migrated thread and some comments may be shown as answers.
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Joel asked on 01 Oct 2020, 03:59 PM

I'm using your loader when I disable forms after an entry/submit.  But, I also use your Grid so I'd like the same "progress indicator" used while waiting for the grid datasource to return.  So, how do I make the Loader use the same animation as the Grid or how do I make the Grid use the Loader?

2 Answers, 1 is accepted

Sort by
0
Accepted
Aleksandar
Telerik team
answered on 06 Oct 2020, 10:20 AM

Hi Joel,

You could follow the guideline on integrating the Loader component as part of a loading panel:

https://docs.telerik.com/aspnet-core/html-helpers/interactivity/loader/integration#loader-in-a-loading-panel

You can handle the Grid's DataSource RequestStart and RequestEnd events to show/hide the Loader.

In this dojo you will find a runnable example of the above suggestion. I hope this helps.

Regards,
Aleksandar
Progress Telerik

Five days of Blazor, Angular, React, and Xamarin experts live-coding on twitch.tv/CodeItLive, special prizes, and more, for FREE?! Register now for DevReach 2.0(20).

0
Joel
Top achievements
Rank 2
Iron
Iron
Iron
answered on 06 Oct 2020, 02:09 PM

Yea, I asked another question instead because we would like our own .gif to run there instead of one of the 3 animations provided by the loader. 

https://www.telerik.com/forums/use-custom-gif-on-load

Tags
Loader
Asked by
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Aleksandar
Telerik team
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or