Loader Components as a Loading/Processing Container

0 Answers 22 Views
General Discussions Loader
Andrew
Top achievements
Rank 1
Veteran
Iron
Andrew asked on 27 Mar 2025, 08:20 PM | edited on 28 Mar 2025, 01:59 PM

How do use the Loader as a Loading Container so it covers the whole UI with a transparent overlay 

 

@(Html.Kendo().Loader()
    .Name("loader")
    .Size(LoaderSize.Large)
    .Type(LoaderType.ConvergingSpinner)
    )
 
Andrew
Top achievements
Rank 1
Veteran
Iron
commented on 28 Mar 2025, 02:00 PM

got it working

 


<div id="loader-overlay" class="loader-overlay">
    @(Html.Kendo().Loader()
        .Name("loader")
        .Size(LoaderSize.Large)
        .Type(LoaderType.ConvergingSpinner)
        )
</div>


.loader-overlay
{
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3); /* Semi-transparent black */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000; /* Ensure it's above other elements */
    display: none; /* Hide initially */
}

.k-loader
{
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

No answers yet. Maybe you can help?

Tags
General Discussions Loader
Asked by
Andrew
Top achievements
Rank 1
Veteran
Iron
Share this question
or