A newer version of this page is available. Switch to the current version.

ExtensionsFactory<ModelType>.ComboBoxFor<ValueType>(Expression<Func<ModelType, ValueType>>, Action<ComboBoxSettings>) Method

Creates a ComboBox.

Namespace: DevExpress.Web.Mvc.UI

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

Declaration

public ComboBoxExtension ComboBoxFor<ValueType>(
    Expression<Func<ModelType, ValueType>> expression,
    Action<ComboBoxSettings> method
)
Public Function ComboBoxFor(Of ValueType)(
    expression As Expression(Of Func(Of ModelType, ValueType)),
    method As Action(Of ComboBoxSettings)
) As ComboBoxExtension

Parameters

Name Type Description
expression Expression<Func<ModelType, ValueType>>

An expression that identifies the object that contains the properties to display.

method Action<ComboBoxSettings>

A delegate method that accepts ComboBoxSettings as a parameter.

Type Parameters

Name
ValueType

Returns

Type Description
ComboBoxExtension

A ComboBoxExtension object implementing the ComboBox functionality.

See Also