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

Scheduler ignores Start & End times set in code

1 Answer 84 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 21 Jul 2008, 08:24 PM
When the page first loads (in day view) the Scheduler sets the DayStartTime, DayEndTime, WorkDayStartTime and WorkDayEndTime to whaterver the values are set to declaritively even though I set them programmatically (in Scheduler_PreRender).

After the page initially loads and I do something to refresh the scheduler like changing the date, then the correct start and end times are displayed.

Is this a bug and if so is there a workaround?

Al

1 Answer, 1 is accepted

Sort by
0
T. Tsonev
Telerik team
answered on 23 Jul 2008, 07:37 AM
Hi Albert,

The PreRender event occurs very late in the life-cycle and the control structure is already created at this stage. You need to call Rebind() to force recreating it:

private void RadScheduler1_PreRender(object sender, EventArgs e) 
    RadScheduler1.DayStartTime = TimeSpan.FromHours(10); 
    RadScheduler1.Rebind(); 
 

I hope this helps.

Best wishes,
Tsvetomir Tsonev
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
Scheduler
Asked by
Albert
Top achievements
Rank 1
Answers by
T. Tsonev
Telerik team
Share this question
or