New to Telerik UI for ASP.NET Core? Download free 30-day trial

Razor Page

This article demonstrates how to configure the Telerik UI Loader component for ASP.NET Core in a RazorPage scenario.

For the full project with RazorPages examples, visit our GitHub repository.

    @model Telerik.Examples.RazorPages.Pages.Loader.LoaderIndexModel    

    @inject Microsoft.AspNetCore.Antiforgery.IAntiforgery Xsrf

    public class LoaderIndexModel : PageModel
        public LoaderSize Size { get; set; }

        public LoaderThemeColor ThemeColor { get; set; }
        public void OnGet()
            ThemeColor = LoaderThemeColor.Success;
            Size = LoaderSize.Large;

See Also

In this article