Skip to main content

ColorEditProperties.ColorOnError Property

Gets or sets a value that specifies the action to be performed after entering an invalid color value to the editor.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v23.2.dll

NuGet Package: DevExpress.Web


public ColorOnError ColorOnError { get; set; }

Property Value

Type Default Description
ColorOnError Undo

One of the ColorOnError enumeration values.

Available values:

Name Description

An invalid color value is replaced with the previously defined value.


An invalid color value is replaced with a null value.


Use the ColorOnError property to specify whether the entered invalid color value should be undone or replaced with null. To specify the editor’s color use the ASPxColorEdit.Color property or the ASPxClientColorEdit.SetColor method.


The ColorOnError property synchronizes its value with the editor’s ASPxColorEdit.ColorOnError property.

See Also