Skip to main content

GridColumnEditorPropertiesFactory.ColorEdit(Action<MVCxColumnColorEditProperties>) Method

Allows you to configure a color edit column.

Namespace: DevExpress.Web.Mvc

Assembly: DevExpress.Web.Mvc5.v24.1.dll

NuGet Package: DevExpress.Web.Mvc5

Declaration

public void ColorEdit(
    Action<MVCxColumnColorEditProperties> method
)

Parameters

Name Type Description
method Action<MVCxColumnColorEditProperties>

A delegate method that accepts an MVCxColumnColorEditProperties object as a parameter.

Remarks

settings.Columns.Add(column => {
     column.FieldName = "Color";
     column.EditorProperties().ColorEdit(p => {
          p.EnableCustomColors = true;
          p.ColumnCount = 6;
     });
});
See Also