Skip to main content
All docs
V26.1
  • DxDateEdit<T>.AllowUpDownArrowKeys Property

    Specifies whether users can press Up/Down arrow keys to increase/decrease the editor value when a mask is applied.

    Namespace: DevExpress.Blazor

    Assembly: DevExpress.Blazor.v26.1.dll

    Declaration

    [DefaultValue(true)]
    [Parameter]
    public bool AllowUpDownArrowKeys { get; set; }

    Property Value

    Type Default Description
    Boolean true

    true if a user can use arrow keys to change the editor value; otherwise, false.

    Remarks

    When the Date Edit has a mask applied, users can press Up Arrow/Down Arrow keys to increase/decrease the value in the active mask section. Refer to the following help topic for additional information: Shortcut Keys for Masked Input Elements.

    You can set the AllowUpDownArrowKeys property to false to disable this functionality.

    <DxDateEdit @bind-Date="@Date"
                Mask="@DateTimeMask.ShortDate"
                AllowUpDownArrowKeys="false" />
    
    @code {
        DateTime Date { get; set; } = DateTime.Now;
    }
    

    You can also use the AllowMouseWheel property to disable mouse wheel interaction.

    See Also