DxDropDownBase<T, JSProxyType>.DropDownVisibleChanged Event

Fires when an editor’s drop-down window visibility is changed.

Namespace: DevExpress.Blazor.Base

Assembly: DevExpress.Blazor.v21.1.dll

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.

Run Demo: ComboBox

See Also