Thank you for contacting Telerik Support.
by default allows the user to select a part of the Date (day/month/year) and change its value by keypress (enter a number). The inside TextBoxElement
containes a MaskDateTimeProvider
composed of 9 parts. Its SelectedItemIndex
indicates which part of the date to be selected. It is not supported to change the default date parsing. You are allowed to navigate the selected index. You may subscribe to GotFocus
event and change the index of the MaskDateTimeProvider
part when the control is focused. Note that SelectedItemIndex
corresponds to Month part, SelectedItemIndex
corresponds to Day part:
sender, EventArgs e)
RadMaskedEditBoxElement mask = sender
MaskDateTimeProvider provider = mask.Provider
provider.SelectedItemIndex = 5;
The control does not allow any input different from a valid DateType. We have a feature request logged in our Public Issue Tracking System - PITS
for Date Parsing custom input control
. You can track its progress, subscribe for status changes and add your vote/comment to it on the following link - PITS issue
For uniform view of the entire application you need to set ApplicationThemeName
If you want to prevent the user to clear the date by Clear button in calendar footer you may use:
RadDateTimePickerCalendar calendarBehavior =
RadCalendar calendar = calendarBehavior.Calendar
calendar.ClearButton.Visibility = Telerik.WinControls.ElementVisibility.Collapsed;
I hope this information helps. Should you have further questions, I would be glad to help.
TRY TELERIK'S NEWEST PRODUCT - EQATEC APPLICATION ANALYTICS for WINFORMS.
Learn what features your users use (or don't use) in your application. Know your audience. Target it better. Develop wisely.
Sign up for Free application insights >>