DayEndTIme not being set as expected

4 posts, 0 answers
  1. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 18 Feb 2015 Link to this post

    Hi

    This is my code (in a with statement)

    .DayStartTime = cfg.DayStartTime
    .DayEndTime = cfg.DayEndTime
    .WorkDayStartTime = cfg.DayStartTime
    .WorkDayEndTime = cfg.DayEndTime

    Both cfg.DayStartTime and cfg.DayEndTime are Timespans

    The .DayStartTime works as expected, but the .DayEndTime always shows 1800.

    I currently have this in a function that gets the data in the PageLoad, but I have tried it in the OnPreRender and neither works the Scheduler defaults to 0800 & 1800.

    Andy
  2. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 23 Feb 2015 Link to this post

    Hello Andy,

    I tried to set the day start and end time in the Page_Load event handler and it worked fine:
    //code behind
    protected void Page_Load(object sender, EventArgs e)
        {
            RadScheduler1.DayStartTime = new TimeSpan(09, 00, 00);
            RadScheduler1.DayEndTime = new TimeSpan(15, 00, 00);
        }



    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Andy Green
    Andy Green avatar
    342 posts
    Member since:
    Aug 2008

    Posted 23 Feb 2015 in reply to Boyan Dimitrov Link to this post

    This is how I'm doing it:

    .DayEndTime = cfg.DayEndTime

    Where cfg.DayEndTIme = 18:00:00

    Does this look right?

    However:
    .DayStartTime = cfg.DayStartTime works OK

    Andy
  5. Boyan Dimitrov
    Admin
    Boyan Dimitrov avatar
    1746 posts

    Posted 26 Feb 2015 Link to this post

    Hello Andy,

    I am attaching the page I am testing with and it works fine. The end time is set to 3PM for testing purposes.


    Regards,
    Boyan Dimitrov
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
Back to Top