ASPxClientListBox.KeyPress Event

Occurs on the client side when an end-user presses and releases a key while the editor has focus.

Declaration

KeyPress: ASPxClientEvent<ASPxClientEditKeyEventHandler<ASPxClientListBox>>

Event Data

The KeyPress event handler receives an argument of the ASPxClientEditKeyEventArgs type. The following properties provide information specific to this event.

Property Description
htmlEvent Gets a DHTML event object that relates to the processed event.

Remarks

The editors' client-side functionality provides the capability to respond to end-user key presses and releases. Each time an end-user presses and releases a key while an editor has focus, the KeyPress event fires. This event can be handled to implement custom processing of key presses/releases.

Using the ASPxClientEditKeyEventArgs.htmlEvent property of the event's argument, you can obtain the necessary information related to the pressed key (such as its key code, the modifier key pressed, etc).

See Also