blazor-devexpress-dot-blazor-dot-dxcombobox-2-0f422e1e.md
Specify when the ComboBox should open its drop-down list.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(DropDownTriggerMode.Input)]
[Parameter]
public DropDownTriggerMode DropDownTriggerMode { get; set; }
| Type | Default | Description |
|---|---|---|
| DropDownTriggerMode | Input |
A DropDownTriggerMode enumeration value.
|
Available values:
| Name | Description |
|---|---|
| Input |
The ComboBox opens its drop-down list when a user starts typing. If the AllowUserInput property is set to false, the ComboBox opens the drop-down list when a user clicks within in the input element.
| | Click |
The ComboBox opens its drop-down list whenever a user focuses the editor with a mouse/pointer device or starts typing.
|
Use the DropDownTriggerMode property to specify when the ComboBox should open its drop-down list.
<DxComboBox Data="@Cities"
@bind-Value="@Value"
DropDownTriggerMode="DropDownTriggerMode.Click">
</DxComboBox>
@code {
IEnumerable<string> Cities = new List<string>() {
"London",
"Berlin",
"Paris",
};
string Value { get; set; }
}
DevExpress.Blazor.IComboBox<TData, TValue>.DropDownTriggerMode
See Also
DxComboBox<TData, TValue> Class