MaskDateOnlyProvider
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:
MaskDateOnlyProvider provider = this.radDateOnlyPicker1.DateOnlyPickerElement.TextBoxElement.Provider as MaskDateOnlyProvider;
provider.AutoSelectNextPart = true;
Dim provider As MaskDateOnlyProvider = TryCast(Me.radDateOnlyPicker1.DateOnlyPickerElement.TextBoxElement.Provider, 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.