Applying AutoSelectNextPart Property to RadTimeOnlyPicker
Environment
Product Version | Product | Author |
---|---|---|
2025.2.520 | RadTimeOnlyPicker for WinForms | Dinko Krastev |
Description
While editing RadTimeOnlyPicker, it will not automatically select the next time part as the user types. In the following article, we will demonstrate how to enable the auto-select next part feature in the RadTimeOnlyPicker control.
Solution
To access and apply the AutoSelectNextPart
property to the RadTimeOnlyPicker, use the TimeOnlyPickerElement
's MaskedEditBox.Provider
. Set the property as shown below:
MaskTimeOnlyProvider maskTimeOnlyProvider = this.radTimeOnlyPicker1.TimeOnlyPickerElement.MaskedEditBox.Provider as MaskTimeOnlyProvider;
maskTimeOnlyProvider.AutoSelectNextPart = true;
This snippet retrieves the provider for the RadTimeOnlyPicker
and enables the AutoSelectNextPart
property.