Default Time

2 posts, 0 answers
  1. Terry Foster
    Terry Foster avatar
    60 posts
    Member since:
    Sep 2009

    Posted 13 Aug 2010 Link to this post

    Hi,

    When the SelectedValue of this control is initially null and you select a new date from calendar control, the default time is current time.  I would like to make the default time something else (usually 12:00).  Is there any way to do this?  I'm willing to override the control.

    Thanks,
    Terry
  2. Kaloyan
    Admin
    Kaloyan avatar
    920 posts

    Posted 18 Aug 2010 Link to this post

    Hi Terry Foster,

    The SelectedValue property is merging the SelectedDate and SelectedTime properties. It means that  setting the picker.SelectedTime = new TimeSpan(12, 0, 0) - will update the SelectedValue with time 12:00:00. Otherwise you can just used the picker.SelectedValue.Value.Date property that will retrieve only the selected date and time equals to 12:00:00.

    All the best,
    Kaloyan
    the Telerik team
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items
  3. DevCraft banner
Back to Top