Quantcast
Viewing all articles
Browse latest Browse all 7205

Custom appointment form with modified behavior


This example illustrates how the appointment form can be customized to meet the following requirements:

All-Day event is the default and start & end times are hidden until the user unchecks the AllDay box at which point the time editors should be displayed. Default start time is 8:00 and end time - 17:00.
If the All Day Event box is unchecked in the appointment editing form, the users should be automatically routed to Day View.
Different types of appointments should be color coded, e.g. employee vacation and personal time off requested. Those appointments that have not yet been approved by management should be highlighted.

Solution:
A custom appointment form is constructed. To implement check/uncheck logic, client-side methods of the corresponding controls are used (SetVisible). New appointment is initialized to All-Day by default via the InitNewAppointment event. To change the active view to the Day View after a save command is executed, the FinalizeExecute() method of a custom MyAppointmentSaveCallbackCommand, inherited from the AppointmentFormSaveCallbackCommand, is overridden.
To indicate different appointment types, custom labels and status are used.

See Also:
How to modify the appointment editing form for working with custom fields (step-by-step guide)


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>