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

DayEndTIme not being set as expected

3 Answers 58 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Andy Green
Top achievements
Rank 2
Andy Green asked on 18 Feb 2015, 10:46 AM
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

3 Answers, 1 is accepted

Sort by
0
Boyan Dimitrov
Telerik team
answered on 23 Feb 2015, 10:06 AM
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.

 
0
Andy Green
Top achievements
Rank 2
answered on 23 Feb 2015, 10:25 AM
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
0
Boyan Dimitrov
Telerik team
answered on 26 Feb 2015, 09:13 AM
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.

 
Tags
Scheduler
Asked by
Andy Green
Top achievements
Rank 2
Answers by
Boyan Dimitrov
Telerik team
Andy Green
Top achievements
Rank 2
Share this question
or