Working with the Client-Side > Client-Side Events |
Input for ASP.NET Web Forms includes several client-side events that allow you to manipulate the C1Input controls 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 invalidInput to respond when an invalid character is entered, you would set the OnClientInvalidInput property to invalidInput.
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 |
---|---|---|
OnClientInitialized | initialized | Occurs after the widget is initialized. |
OnClientInitializing | initializing | Occurs before the widget is initialized. |
OnClientInvalidInput | invalidInput | Occurs when an invalid character is entered. |
OnClientTextChanged | textChanged | Occurs when the text of the input is changed. |
OnClientTriggerMouseDown | triggerMouseDown | Occurs when the mouse is pressed down on the trigger button. |
OnClientTriggerMouseUp | triggerMouseUp | Occurs when the mouse is released on the trigger button. |
OnClientDateChanged (InputDate only) | dateChanged | Occurs after the date value changed. |
OnClientValueBoundsExceeded (InputNumber only) | valueBoundsExceeded | Occurs when the value of the input exceeds the valid range. |
OnClientValueChanged (InputNumber only) | valueChanged | Occurs after the value changed. |
For task-based help on client-side events, see the Client-Side Event Tasks topic. Descriptions and syntax examples for the C1Input client-side events can also be found at http://wijmo.com/wiki/index.php/InputMask.