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

Loader

Class

Kendo UI Loader component

Definition

Constructors

Initializes a new instance of the Loader class.

C#
public Loader(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

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

C#
public LoaderMessagesSettings Messages { get; set; }

Defines the size of the loader

C#
public LoaderSize? Size { get; set; }

Defines the theme color of the loader

C#
public LoaderThemeColor? ThemeColor { get; set; }

Defines the type of the loader

C#
public LoaderType? Type { get; set; }

If set to false the loader will not be displayed.

C#
public bool? Visible { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)