Skip to main content
A newer version of this page is available. .
Tab

ASPxColorEdit Class

Represents a color editor control that has a dropdown window with a color palette.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v20.2.dll

NuGet Package: DevExpress.Web

Declaration

public class ASPxColorEdit :
    ASPxDropDownEditBase,
    IControlDesigner

Remarks

The ASPxColorEdit class implements the functionality of a color picker, which enables your end-users to visually select a color within the dropdown window containing a palette of colors. This control is useful in modifying the colors of different elements on the page.

ASPxColorEdit_control

The editor default palette is accessible on the server side using the ASPxColorEdit.Items property. End-users can use an optional color picker to select a custom color. By default, it is disabled. Set the ASPxColorEdit.EnableCustomColors property to true to display the custom color section in the editor dropdown window.

You can specify a number of columns in the editor drop-down window with the ASPxColorEdit.ColumnCount property.

The editor’s color can be specified by using the ASPxColorEdit.Color property. To specify a color in text format, use the ASPxColorEdit.Value property.

Note

The client-side equivalent of this editor control is the ASPxClientColorEdit object. The editor’s client-side API is enabled if the ASPxEditBase.EnableClientSideAPI property is set to true, the ASPxEditBase.ClientInstanceName property is defined, or any client event is handled. Available client events can be accessed via the ASPxColorEdit.ClientSideEvents property.

See Also