aspnetmvc-devexpress-dot-web-dot-mvc-dot-buttonsettings-62f5b136.md
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
public ButtonRenderMode RenderMode { get; set; }
Public Property RenderMode As ButtonRenderMode
| Type | Description |
|---|---|
| ButtonRenderMode |
One of the ButtonRenderMode enumeration values.
|
Available values:
| Name | Description |
|---|---|
| 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.
|
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