New to Telerik UI for WinFormsStart a free 30-day trial

MaskDateOnlyProvider

Updated over 6 months ago

The MaskDateOnlyProvider is responsible for the parsing of the dates. The MaskDateOnlyProvider can be accessed by casting to that appropriate class. Here is a list of the expose properties.

  • The AutoCompleteYear property controls whether to auto-complete years on user input.
  • The YearResetValue property determines the year value when is has been reset.
  • The Value property gets or sets the value of the provider.
  • The MinDate property gets or sets the min date of the provider.
  • The MaxDate property gets or sets the max date of the provider.
  • The AutoSelectNextPart property controls whether or not the next date part will be automatically selected when the user types.
  • The SelectedItemIndex property can be used to retrieve the current selected part of the date.
  • The SelectFirstItem method just selects the first part of the date.
  • The SelectNextItem method just selects the last part of the date.

The following code spinet demonstrates how one can access and use the provider:

C#
MaskDateOnlyProvider provider = this.radDateOnlyPicker1.DateOnlyPickerElement.TextBoxElement.Provider as MaskDateOnlyProvider;
provider.AutoSelectNextPart = true;

The MaskProviderCreated event will be fired each time when new provider instance is created. For example when the MaskType is changed.

See Also

In this article
See Also
Not finding the help you need?
Contact Support