New to Telerik UI for ASP.NET AJAXStart 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();
	}
}
	

See Also

In this article
ExampleSee Also
Not finding the help you need?
Contact Support