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

Button

Class

Definition

Constructors

C#
public Button(ViewContext viewContext, IJavaScriptInitializer initializer)
Parameters:viewContextViewContextinitializerIJavaScriptInitializer

Properties

C#
public ButtonBadgeSettings Badge { get; set; }
C#
public bool Enable { get; set; }

Sets a value controlling how the color is applied.

C#
public ButtonFillMode? FillMode { get; set; }
C#
public string Icon { get; set; }
C#
public string ImageUrl { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

Sets the size of the component.

C#
public ButtonSize? Size { get; set; }
C#
public string SpriteCssClass { get; set; }
C#
public string Tag { get; set; }

Specifies the pane contents

C#
public HtmlTemplate Template { get; set; }

Sets the color of the component according to the applied theme.

C#
public ThemeColor? ThemeColor { 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

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

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

The writer.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)