Skip to main content
A newer version of this page is available. .

MaskCaretMode Enum

Lists caret navigation modes for Date-Time masks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v22.1.dll

NuGet Package: DevExpress.Blazor

Declaration

public enum MaskCaretMode

Members

Name Description
Regular

After users enter a specific part of a date/time value, they should use the keyboard or mouse to move the caret to another part.

Advancing

After users enter and completes a specific part of a date/time value, the caret moves to the following part of a date/time value that can be edited.

Related API Members

The following properties accept/return MaskCaretMode values:

Remarks

Use the CaretMode property to specify the caret navigation mode for a data editor with a Date-Time mask.

Regular Mode

Regular Date-Time Masks

Advancing Caret Mode

To enable this mode, set the CaretMode property to MaskCaretMode.Advancing.

Date-Time Masks with Advanced Caret

<DxDateEdit @bind-Date="Value"
            Mask="@DateTimeMask.ShortDate">
    <DxDateTimeMaskProperties CaretMode="MaskCaretMode.Advancing" />
</DxDateEdit>

@code {
    DateTime Value { get; set; } = DateTime.Now;
}
See Also