Click here to Skip to main content
15,912,493 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
namespace DXWebClinicScheduling
{

public partial class MyAppointmentForm_aspx : SchedulerFormControl
{
protected void Page_Load(object sender, EventArgs e)
{
PrepareChildControls();
tbFullName.Focus();
}
public override void DataBind()
{
base.DataBind();
MyAppointmentFormTemplateContainer container = (MyAppointmentFormTemplateContainer)Parent;
AppointmentRecurrenceForm1.Visible = container.ShouldShowRecurrence;

btnOk.ClientSideEvents.Click = container.SaveHandler;
btnCancel.ClientSideEvents.Click = container.CancelHandler;
btnDelete.ClientSideEvents.Click = container.DeleteHandler;
}

protected override void PrepareChildControls()
{
AppointmentFormTemplateContainer container = (AppointmentFormTemplateContainer)Parent;
ASPxScheduler control = container.Control;

AppointmentRecurrenceForm1.EditorsInfo = new EditorsInfo(control, control.Styles.FormEditors, control.Images.FormEditors, control.Styles.Buttons);
base.PrepareChildControls();
}


protected override ASPxEditBase[] GetChildEditors()
{
ASPxEditBase[] edits = new ASPxEditBase[] {
lblShortDescription, lblLongDescription, lblFullName, tbFullName,
lblPhone, tbPhone, lblDoctor, cbDoctor, lblStartTime, edtStartTime,
lblEndTime, edtEndDate, lblDescription, memDescription,
};
return edits;

}

protected override ASPxButton[] GetChildButtons()
{
ASPxButton[] buttons = new ASPxButton[] {
btnOk, btnCancel, btnDelete
};
return buttons;
}
}
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900