or

01.protected void RadScheduler1_FormCreated(object sender, SchedulerFormCreatedEventArgs e)02. {03. if ((e.Container.Mode == SchedulerFormMode.AdvancedEdit) || (e.Container.Mode == SchedulerFormMode.AdvancedInsert))04. {05. CustomValidator validatorForDescription = new CustomValidator();06. RadScheduler scheduler = (RadScheduler)sender;07. validatorForDescription.ValidationGroup = scheduler.ValidationGroup;08. validatorForDescription.ControlToValidate = "Subject";09. validatorForDescription.ErrorMessage = "Job Title should be indicated !";10. validatorForDescription.ClientValidationFunction = "validationFunction";11. //validatorForDescription.Display = ValidatorDisplay.Dynamic;12. //e.Container.Controls.Add(validatorForDescription); 13. (e.Container.FindControl("Subject") as RadTextBox).Parent.Controls.Add(validatorForDescription);14. 15. CheckBox allDayCheckbox = (CheckBox)e.Container.FindControl("AllDayEvent");16. allDayCheckbox.Style.Add("visibility", "hidden");17. }18. }01.<telerik:RadScheduler runat="server" ID="RadScheduler1" TimeZoneOffset="10:00:00" OnAppointmentInsert="RadScheduler1_AppointmentInsert" OverflowBehavior="Expand" Height="100%"02. OnAppointmentUpdate="RadScheduler1_AppointmentUpdate" OnAppointmentDelete="RadScheduler1_AppointmentDelete"03. DataKeyField="ID" DataSubjectField="Subject" DataStartField="Start" DataEndField="End" OnFormCreated="RadScheduler1_FormCreated"04. FirstDayOfWeek="Monday" LastDayOfWeek="Sunday" TimeZoneID="AUS Eastern Standard Time" DisplayDeleteConfirmation="False" SelectedDate="2014-06-24">05. <ExportSettings>06. <Pdf PageTopMargin="1in" PageBottomMargin="1in" PageLeftMargin="1in" PageRightMargin="1in"></Pdf>07. </ExportSettings>08. 09. <AdvancedForm Modal="true" />10. <Localization AdvancedNewAppointment="Add a new job" AdvancedSubject="Job Title" AdvancedEditAppointment="Edit Job" AllDay="false" />11. <TimelineView UserSelectable="false" />12. <TimeSlotContextMenuSettings EnableDefault="true" />13. <AppointmentContextMenuSettings EnableDefault="true" />14. <Reminders Enabled="false" />15. <AppointmentTemplate>16. <div>17. <%# Eval("Subject") %>18. <br />19. </div>20. </AppointmentTemplate>21. </telerik:RadScheduler>