DxDropDownBase<T, JSProxyType>.DropDownVisibleChanged Event
Fires when an editor’s drop-down window visibility is changed.
Namespace: DevExpress.Blazor.Base
Assembly: DevExpress.Blazor.v20.2.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<bool> DropDownVisibleChanged { get; set; }
Parameters
Type | Description |
---|---|
Boolean | A new value of the DropDownVisible property. |
Remarks
Handle the DropDownVisibleChanged event to respond to the DropDownVisible property change.
<DxComboBox Data="@Cities"
DropDownVisible="@DropDownVisible"
DropDownVisibleChanged="@((value) => OnDropDownVisibleChanges(value))">
</DxComboBox>
@code {
IEnumerable<string> Cities = new List<string>() {
"London",
"Berlin",
"Paris",
};
bool DropDownVisible = true;
void OnDropDownVisibleChanges(bool value) {
DropDownVisible = value;
// ...
}
}
To command the editor to display the drop-down window in code, call the ShowDropDown() method.
See Also