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.v21.2.dll

Declaration

public ButtonRenderMode RenderMode { get; set; }

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.

ASPxButton_ButtonMode

The button is rendered as a hyperlink HTML element.

ASPxButton_LinkMode

Secondary

Identifies a button of secondary importance.

ASPxButton-Secondary

Outline

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

ASPxButton-Outline

Danger

The button indicates a dangerous or potentially negative action.

ASPxButton-Danger

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