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

Appearance

The Loader component provides predefined appearance options, such as different types, sizes, and theme colors.

To explore the available options for customizing the Loader appearance, refer to the following demos:

Type

The Loader allows you to set different visual animations by using the Type property.

The available Type values are:

  • Pulsing (Default)—Applies pulsing animation on the Loader.
  • InfiniteSpinner—Applies infinite-spinner animation on the Loader.
  • ConvergingSpinner—Applies converging-spinner animation on the Loader.
    @(Html.Kendo().Loader()
        .Name("pulsing")
        .Type(LoaderType.Pulsing)
    )

    @(Html.Kendo().Loader()
        .Name("infinite")
        .Type(LoaderType.InfiniteSpinner)
    )

    @(Html.Kendo().Loader()
        .Name("converging")
        .Type(LoaderType.ConvergingSpinner)
    )

Theme Color

The Loader allows you to specify predefined theme colors.

The available ThemeColor values are:

  • Primary (Default)—Applies coloring based on primary theme color.
  • Secondary—Applies coloring based on secondary theme color.
  • Tertiary— Applies coloring based on tertiary theme color.
  • Info—Applies coloring based on info theme color.
  • Success— Applies coloring based on success theme color.
  • Warning— Applies coloring based on warning theme color.
  • Error— Applies coloring based on error theme color.
  • Dark— Applies coloring based on dark theme color.
  • Light— Applies coloring based on light theme color.
  • Inverse— Applies coloring based on inverted theme color.
    @(Html.Kendo().Loader()
        .Name("Primary")
        .ThemeColor(LoaderThemeColor.Primary)
    )

    @(Html.Kendo().Loader()
        .Name("Secondary")
        .ThemeColor(LoaderThemeColor.Secondary)
    )

    @(Html.Kendo().Loader()
        .Name("Tertiary")
        .ThemeColor(LoaderThemeColor.Tertiary)
    )

    @(Html.Kendo().Loader()
        .Name("Info")
        .ThemeColor(LoaderThemeColor.Info)
    )

    @(Html.Kendo().Loader()
        .Name("Success")
        .ThemeColor(LoaderThemeColor.Success)
    )

    @(Html.Kendo().Loader()
        .Name("Warning")
        .ThemeColor(LoaderThemeColor.Warning)
    )

    @(Html.Kendo().Loader()
        .Name("Error")
        .ThemeColor(LoaderThemeColor.Error)
    )

    @(Html.Kendo().Loader()
        .Name("Dark")
        .ThemeColor(LoaderThemeColor.Dark)
    )

    @(Html.Kendo().Loader()
        .Name("Light")
        .ThemeColor(LoaderThemeColor.Light)
    )

    @(Html.Kendo().Loader()
        .Name("Inverse")
        .ThemeColor(LoaderThemeColor.Inverse)
    )

Size

The Loader allows you to set different sizes.

The available Size values are:

  • Small
  • Medium (Default)
  • Large
    @(Html.Kendo().Loader()
        .Name("loader-small")
        .Size(LoaderSize.Small)
    )

    @(Html.Kendo().Loader()
        .Name("loader-medium")
        .Size(LoaderSize.Medium)
    )

    @(Html.Kendo().Loader()
        .Name("loader-large")
        .Size(LoaderSize.Large)
    )

See Also

In this article