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

RadScheduler Docs error III

1 Answer 50 Views
Documentation and Tutorials
This is a migrated thread and some comments may be shown as answers.
Stuart Hemming
Top achievements
Rank 2
Stuart Hemming asked on 17 Oct 2010, 12:00 AM
The FormCreated example code contains an error; you can't assign e.Container.Appointment.Start (a DateTime) directly to a string (startDate.Text).

-- 
Stuart

1 Answer, 1 is accepted

Sort by
0
Veronica
Telerik team
answered on 21 Oct 2010, 04:19 PM
Hi Stuart Hemming,

Yes, you are right. It needs to be
 
void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)
{
  if (e.Container.Mode == SchedulerFormMode.Insert)
  {
      Label startDate = (Label) e.Container.FindControl("StartDate");
      startDate.Text = e.Container.Appointment.Start.ToString();
  }
}

Thank you for reporting this!

Greetings,
Veronica Milcheva
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
Tags
Documentation and Tutorials
Asked by
Stuart Hemming
Top achievements
Rank 2
Answers by
Veronica
Telerik team
Share this question
or