Skip to content

Commit cc505f4

Browse files
authored
Merge pull request #768 from telerik/new-kb-timeonlypicker-auto-select-next-part-fba0bf48d10549298195939dfec0b5a3
Added new kb article timeonlypicker-auto-select-next-part
2 parents 7369ec0 + b46f673 commit cc505f4

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
---
2+
title: Applying AutoSelectNextPart Property to RadTimeOnlyPicker
3+
description: Learn how to access and apply the AutoSelectNextPart property in RadTimeOnlyPicker.
4+
type: how-to
5+
page_title: Using AutoSelectNextPart Property in RadTimeOnlyPicker
6+
meta_title: Using AutoSelectNextPart Property in RadTimeOnlyPicker
7+
slug: timeonlypicker-auto-select-next-part
8+
tags: editors,timeonlypicker, autoselectnextpart, timeonlyprovider, ui-for-winforms
9+
res_type: kb
10+
ticketid: 1695200
11+
---
12+
13+
## Environment
14+
|Product Version|Product|Author|
15+
|----|----|----|
16+
|2025.2.520|RadTimeOnlyPicker for WinForms|[Dinko Krastev](https://www.telerik.com/blogs/author/dinko-krastev)|
17+
18+
## Description
19+
20+
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.
21+
22+
## Solution
23+
24+
To access and apply the `AutoSelectNextPart` property to the RadTimeOnlyPicker, use the `TimeOnlyPickerElement`'s `MaskedEditBox.Provider`. Set the property as shown below:
25+
26+
````C#
27+
MaskTimeOnlyProvider maskTimeOnlyProvider = this.radTimeOnlyPicker1.TimeOnlyPickerElement.MaskedEditBox.Provider as MaskTimeOnlyProvider;
28+
maskTimeOnlyProvider.AutoSelectNextPart = true;
29+
30+
````
31+
32+
This snippet retrieves the provider for the `RadTimeOnlyPicker` and enables the `AutoSelectNextPart` property.
33+
34+
## See Also
35+
36+
* [RadTimeOnlyPicker Overview](https://docs.telerik.com/devtools/winforms/controls/editors/timeonlypicker/overview)
37+
* [RadDateOnlyPicker Overview](https://docs.telerik.com/devtools/winforms/controls/editors/dateonlypicker/overview)

0 commit comments

Comments
 (0)