void SubscribeButtons() { RecurrentAppointmentEditFormTemplateContainer container = (RecurrentAppointmentEditFormTemplateContainer)Parent; this.btnOk.ClientSideEvents.Click = container.ApplyHandler; this.btnCancel.ClientSideEvents.Click = container.CancelHandler; }
void AssignStatusImage(ASPxImage image) { RecurrentAppointmentEditFormTemplateContainer container = (RecurrentAppointmentEditFormTemplateContainer)Parent; ASPxSchedulerImages images = container.Control.Images; image.SpriteCssClass = images.GetStatusInfoImage(Page).SpriteProperties.CssClass; image.SpriteImageUrl = images.SpriteImageUrl; }
public override void DataBind() { base.DataBind(); RecurrentAppointmentEditFormTemplateContainer container = (RecurrentAppointmentEditFormTemplateContainer)Parent; btnOk.ClientSideEvents.Click = container.ApplyHandler; btnCancel.ClientSideEvents.Click = container.CancelHandler; }
void PrepareChildControls() { RecurrentAppointmentEditFormTemplateContainer container = (RecurrentAppointmentEditFormTemplateContainer)Parent; ASPxScheduler control = container.Control; ASPxEditBase[] edits = new ASPxEditBase[] { lblConfirm, rbAction }; foreach (ASPxEditBase edit in edits) { edit.ParentSkinOwner = control; edit.ParentStyles = control.Styles.FormEditors; edit.ParentImages = control.Images.FormEditors; } btnOk.ParentSkinOwner = btnCancel.ParentSkinOwner = control; }
void Localize(RecurrentAppointmentEditFormTemplateContainer container) { string formatString = ASPxSchedulerLocalizer.GetString(ASPxSchedulerStringId.Form_ConfirmEdit); lblConfirm.Text = String.Format(formatString, container.Appointment.Subject); }