"Now" button in TimePicker?

2 posts, 0 answers
  1. Martin
    Martin avatar
    26 posts
    Member since:
    Jul 2012

    Posted 06 Nov 2012 Link to this post

    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?

  2. Deyan
    Admin
    Deyan avatar
    2039 posts

    Posted 07 Nov 2012 Link to this post

    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.

  3. DevCraft banner
Back to Top