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

    Rating for ASP.NET Web Forms includes several client-side events that allow you to manipulate the C1Rating control when an action such as the control is hovered.

    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 starHover to respond when the control is hovered, you would set the OnClientHover property to starHover.

    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
    OnClientHover hover Occurs when the widget is hovered over.
    OnClientRated rating Occurs after the widget rating.
    OnClientRating rating Occurs before the widget rating.
    OnClientReset reset Occurs when the reset button is clicked.

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

    See Also