TreeListColumnEditorPropertiesFactory.ComboBox(Action<MVCxColumnComboBoxProperties>) Method

Allows you to configure a combo box column.

Namespace: DevExpress.Web.Mvc

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

Declaration

public void ComboBox(
    Action<MVCxColumnComboBoxProperties> method
)

Parameters

Name Type Description
method Action<MVCxColumnComboBoxProperties>

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

Remarks

settings.Columns.Add(column => {
     column.FieldName = "CategoryID";
     column.Caption = "Category";
     column.EditorProperties().ComboBox(p => {
          p.DataSource = NorthwindDataProvider.GetCategories();
          p.TextField = "CategoryName";
          p.ValueField = "CategoryID";
          p.ValueType = typeof(int);
     });
});
See Also