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.v24.1.dll
NuGet Package: DevExpress.Web.Mvc5
Declaration
Property Value
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. |
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.