set default DateTime in RadDateTimePicker

2 posts, 1 answers
  1. Hadoop
    Hadoop avatar
    8 posts
    Member since:
    Jun 2015

    Posted 16 Jun 2015 Link to this post

    Language : : C#, ASP.NET

    How can I set default DateTime value in RadDateTimePicker. Default value should be one day greater than the current date with time as "12:00 AM". How can I do this?

  2. Answer
    Viktor Tachev
    Viktor Tachev avatar
    1769 posts

    Posted 19 Jun 2015 Link to this post


    In order to implement the behavior you can handle the Load event of the RadDateTimePicker and set the appropriate date.

    <telerik:RadDateTimePicker runat="server" ID="RadDateTimePicer1" OnLoad="RadDateTimePicer1_Load"></telerik:RadDateTimePicker>

    protected void RadDateTimePicer1_Load(object sender, EventArgs e)
        (sender as RadDateTimePicker).SelectedDate = DateTime.Today.AddDays(1);

    Viktor Tachev
    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 Feedback Portal and vote to affect the priority of the items
Back to Top