ComponentOne EventsCalendar for ASP.NET Web Forms
Working with the Client-Side / Client-Side Events
In This Topic
    Client-Side Events
    In This Topic

    EventsCalendar for ASP.NET Web Forms  includes several client-side events that allow you to manipulate the C1EventsCalendar control when an action such as an invalid character is entered.

    You can use the sever-side properties, listed in the Client Side Event 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 beforeDeleteCalendar to respond before the calendar is deleted, you would set the OnClientBeforeDeleteCalendar property to beforeDeleteCalendar.

    The following table lists the events that you can use in your client scripts. These properties are defined on the server side, but the actual events or the name you declare for each JavaScript function are defined on the client side.

    Event Server-Side Property Name Event Name Description
    OnClientBeforeDeleteCalendar beforeDeleteCalendar Occurs before the delete calendar action.
    OnClientBeforeDeleteEvent beforeDeleteEvent Occurs before the delete action.
    OnClientBeforeSaveCalendar Occurs before the save calendar action.
    OnClientBeforeSaveEvent Occurs before the save event action.
    OnClientCalendarsChanged calendarsChanged Occurs when the calendars option has been changed.
    OnClientInitialized initialized Occurs when the events calendar is constructed and events data is loaded from an external or local data source.
    OnClientSelectedDatesChanged selectedDatesChanged Occurs after the date value changed.
    OnClientViewTypeChanged viewTypeChanged Occurs when the viewType option has been changed.

    Descriptions and syntax examples for the C1EventsCalendar client-side events can also be found at http://wijmo.com/wiki/index.php/Events_Calendar.

    See Also