TreeListColumnEditorPropertiesFactory.ColorEdit(Action<MVCxColumnColorEditProperties>) Method

Allows you to configure a color edit column.

Namespace: DevExpress.Web.Mvc

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

Declaration

public void ColorEdit(
    Action<MVCxColumnColorEditProperties> method
)
Public Sub ColorEdit(
    method As Action(Of MVCxColumnColorEditProperties)
)

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