Resize Loading Indicator

1 Answer 216 Views
Grid
Joel
Top achievements
Rank 2
Iron
Iron
Iron
Joel asked on 19 May 2022, 07:29 PM


This changes the loading image on my datagrid.  However, its huge.  How do I resize this down to something reasonable?  So, I need to show a gif 125px X 125px inside a grid that is about 1100px X 550px.  Right now it seems the gif is resized to fit the entire area.
<style>

.k-loading-image:before,
.k-loading-image:after {
    display: none !important;
}

.k-loading-image {
    background: url('./images/Busy/SmallV1.gif') center center no-repeat;
}
</style>

1 Answer, 1 is accepted

Sort by
0
Petar
Telerik team
answered on 23 May 2022, 01:43 PM

Hi Joel,

Here is a REPL project in which the below CSS code is used to add a new loading indicator to the Grid and change its size. 

.k-loading-image {
    background: url('http://bestanimations.com/Science/Gears/loadinggears/loading-gear-2.gif') center center no-repeat;
    background-size: 200px 200px;
}

To change the size of the Grid loader, the code in yellow is used.

Try applying the suggested approach and let me know if you need furhter assistance with the current thread. 

Regards,
Petar
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

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