Skip to main content

HtmlEditorCustomDialog.DefaultButtonID Property

Gets or sets the dialog button that is focused by default.

Namespace: DevExpress.Web.ASPxHtmlEditor

Assembly: DevExpress.Web.ASPxHtmlEditor.v24.2.dll

Declaration

[DefaultValue("")]
public string DefaultButtonID { get; set; }

Property Value

Type Default Description
String String.Empty

A String value which identifies the dialog button to be focused by default.

Remarks

If the custom dialog displays both dialog buttons, use the DefaultButtonID property to specify which one will be focused by default. Values include:

Value Dialog Button
Ok The Ok button.
Cancel The Cancel button.

To control the visibility of dialog buttons, use the HtmlEditorCustomDialog.OkButtonVisible and HtmlEditorCustomDialog.CancelButtonVisible properties.

See Also