New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial
FormCreated
The FormCreated event occurs when the edit form or in-line editor has just been created. It also occurs when the edit form or in-line editor is closed.
FormCreated has two parameters:
-
sender is the scheduler control.
-
e is an object of type SchedulerFormCreatedEventArgs. It has the following properties:
-
Appointment is the appointment that is about to be inserted or updated using an editor.
-
Container is the edit form or in-line editor that has just been instantiated.
You can use this event to make modifications to the editor template.
Example
C#
protected 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();
}
}