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

Defines the fluent API for configuring the Kendo Loader for ASP.NET MVC.

Definition

Constructors

Initializes a new instance of the Loader class.

C#
public LoaderBuilder(Loader component)
Parameters:componentLoader

The component.

Methods

Allows localization of the strings that are used in the widget.

C#
public LoaderBuilder Messages(Action<LoaderMessagesSettingsBuilder> configurator)
Parameters:configuratorAction<LoaderMessagesSettingsBuilder>

The action that configures the messages.

Returns:

LoaderBuilder

Example:
C#
@(Html.Kendo().Loader()
.Name("loader")
.Messages(m =&gt; m.Loading("Loading..."))
)

Defines the size of the loader

C#
public LoaderBuilder Size(LoaderSize value)
Parameters:valueLoaderSize

The value that configures the size.

Returns:

LoaderBuilder

Example:
C#
@(Html.Kendo().Loader()
.Name("loader")
.Size(LoaderSize.Medium)
)

Defines the theme color of the loader

C#
public LoaderBuilder ThemeColor(LoaderThemeColor value)
Parameters:valueLoaderThemeColor

The value that configures the themecolor.

Returns:

LoaderBuilder

Example:
C#
@(Html.Kendo().Loader()
.Name("loader")
.ThemeColor(LoaderThemeColor.Base)
)

Defines the type of the loader

C#
public LoaderBuilder Type(LoaderType value)
Parameters:valueLoaderType

The value that configures the type.

Returns:

LoaderBuilder

Example:
C#
@(Html.Kendo().Loader()
.Name("loader")
.Type(LoaderType.InfiniteSpinner)
)

If set to false the loader will not be displayed.

C#
public LoaderBuilder Visible(bool value)
Parameters:valuebool

The value that configures the visible.

Returns:

LoaderBuilder

Example:
C#
@(Html.Kendo().Loader()
.Name("loader")
.Visible(false)
)