DxDateEdit<T>.AllowMouseWheel Property
Specifies whether users can use the mouse wheel to increase or decrease the editor value when a mask is applied.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v26.1.dll
Declaration
[DefaultValue(true)]
[Parameter]
public bool AllowMouseWheel { get; set; }
Property Value
| Type | Default | Description |
|---|---|---|
| Boolean | true |
|
Remarks
When the Date Edit has a mask applied, users can use the mouse wheel to increase or decrease the value in the active mask section.
You can set the AllowMouseWheel property to false to disable this functionality.
<DxDateEdit @bind-Date="@Date"
Mask="@DateTimeMask.ShortDate"
AllowMouseWheel="false" />
@code {
DateTime Date { get; set; } = DateTime.Now;
}
You can also use the AllowUpDownArrowKeys property to disable keyboard interaction.
See Also