TreeListColumnEditorPropertiesFactory.ComboBox(Action<MVCxColumnComboBoxProperties>) Method
In This Article
Allows you to configure a combo box column.
Namespace: DevExpress.Web.Mvc
Assembly: DevExpress.Web.Mvc5.v24.2.dll
NuGet Package: DevExpress.Web.Mvc5
#Declaration
public void ComboBox(
Action<MVCxColumnComboBoxProperties> method
)
#Parameters
Name | Type | Description |
---|---|---|
method | Action<MVCx |
A delegate method that accepts an MVCx |
#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