Back to Devexpress

ButtonSettings.RenderMode Property

aspnetmvc-devexpress-dot-web-dot-mvc-dot-buttonsettings-62f5b136.md

latest2.5 KB
Original Source

ButtonSettings.RenderMode Property

Gets or sets a value that specifies whether a Button is rendered as a button or as a link.

Namespace : DevExpress.Web.Mvc

Assembly : DevExpress.Web.Mvc5.v25.2.dll

NuGet Package : DevExpress.Web.Mvc5

Declaration

csharp
public ButtonRenderMode RenderMode { get; set; }
vb
Public Property RenderMode As ButtonRenderMode

Property Value

TypeDescription
ButtonRenderMode

One of the ButtonRenderMode enumeration values.

|

Available values:

NameDescription
Button

The button is rendered as an input HTML element.

| | Link |

The button is rendered as a hyperlink HTML element.

| | Secondary |

Identifies a button of secondary importance.

| | Outline |

Represents the button with a colored border and without a background color.

| | Danger |

The button indicates a dangerous or potentially negative action.

|

Remarks

Use the RenderMode property to specify which element is used to render a button: an input (the Button value) or a link (the Link value). To render a button as an image, set the RenderMode property to ButtonRenderMode.Link, specify the button’s ButtonSettings.Images .Image property, and clear the ButtonSettings.Text property.

See Also

Button

ButtonSettings Class

ButtonSettings Members

DevExpress.Web.Mvc Namespace