Skip to main content

TreeListColumnEditorPropertiesFactory.ColorEdit(Action<MVCxColumnColorEditProperties>) Method

Allows you to configure a color edit column.

Namespace: DevExpress.Web.Mvc

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

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