DxDropDown.IsOpenChanged Event
Fires when the DropDown opens or closes.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
[Parameter]
public EventCallback<bool> IsOpenChanged { get; set; }
Parameters
Type | Description |
---|---|
Boolean | A new value of the IsOpen property. |
Remarks
The IsOpenChanged
event occurs when the IsOpen property value is changed. For instance, it fires when a user closes the window or you call the ShowAsync and CloseAsync methods.
<DxButton Id="show-dropdown" Click="() => IsOpen = !IsOpen">Show a drop-down window</DxButton>
<DxDropDown IsOpen="@IsOpen" IsOpenChanged="OnIsOpenChanged" PositionTarget="#show-dropdown"
Width="400" BodyText="Lorem ipsum dolor sit amet.">
</DxDropDown>
@code {
bool IsOpen { get; set; } = false;
async Task OnIsOpenChanged (bool isOpen) {
// your code
}
}
See Also