Calendar for ASP.NET Web Forms
Calendar Client-Side Events
Client-Side Calendar > Calendar Client-Side Events

C1Calendar includes several client-side events that allow you to manipulate C1Calendar when the following actions occur:

By using client-side code such as JavaScript you can implement many features to your Web page without the need to send information to the Web server which takes time. Thus, using client-side code increases the efficiency of your Web site.

The C1Calendar control exposes the following string properties that specify the name of the corresponding client side events (listed in the preceding table) to execute whenever the corresponding action occurs at run time:

Property Description
OnClientAfterSelect Occurs after a date is selected.
OnClientAfterSlide Occurs after the month view slides.
OnClientBeforeSelect Occurs before a date is selected.
OnClientBeforeSlide Occurs before the month view slides.
OnClientCustomizeDate A callback function used for customizing the content, style and attributes of a day cell.
OnClientSelectedDatesChanged Occurs when the selected dates collection changed.

These events are useful for providing client-side interactivity. With these events you can provide more control over C1Calendar by controlling how the users interact with C1Calendar.

To process these events, you must add JavaScript functions to your Web form's source page, then have the control call these functions in response to the C1Calendar client-side events.

You can use the sever-side properties, listed in the preceding table, to specify the name of the JavaScript function that will respond to a particular client-side event. For example, to assign a JavaScript function called "AfterSelect" to respond to the calendar after a date is selected, you would set the OnClientAfterSelect property to "AfterSelect".

See Also