Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

MaskCaretMode Enum

Lists caret navigation modes for date-time, date-time offset, and time span masks.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.2.dll

NuGet Package: DevExpress.Blazor

#Declaration

C#
public enum MaskCaretMode

#Members

Name Description
Regular

Input focus remains within one section until a user moves focus to another section.

Advancing

After a user completes input into a mask section, the caret moves to the next editable section.

#Related API Members

#Remarks

Date-time, date-time offset, and time span masks can include multiple sections (for instance, the days and hours sections). These masks allow users to modify only one section at a time. Input focus remains within one section until a user moves focus to another section.

Set the CaretMode property to Advancing to move the caret to the next editable section after a user completes input into a mask section:

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

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