This is a migrated thread and some comments may be shown as answers.

"Now" button in TimePicker?

1 Answer 48 Views
TimePicker and TimeSelector
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Martin
Top achievements
Rank 1
Martin asked on 06 Nov 2012, 12:44 PM

I'd like to have button in TimePicker full screen mode to set the time to "Now", what's the simplest way to accomplish this?

Or should I just use custom PickerBox with TimeSelector and Now button in AppBar?

Same question goes for DatePicker with button for selecting "Today", any idea, how to create it?

1 Answer, 1 is accepted

Sort by
0
Deyan
Telerik team
answered on 07 Nov 2012, 02:52 PM
Hello Martin,

Thanks for writing and for your question.

What you can do is basically extend the template of the control by adding a NOW button in the popup. Then you should handle the Click event of this button and set the Value property of the selector within the popup to DateTime.Now.

You probably will find useful taking a look at the PopupDefaultValue property which allows you to specify a value for the popup without making it the selected value.

I hope this helps.

Kind regards,
Deyan
the Telerik team

Explore the entire Telerik portfolio by downloading Telerik DevCraft Ultimate.

Tags
TimePicker and TimeSelector
Asked by
Martin
Top achievements
Rank 1
Answers by
Deyan
Telerik team
Share this question
or