The requested page is not available for the requested platform. You are viewing the content for Default platform.

ASPxClientTextEdit.KeyDown Event

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


KeyDown: ASPxClientEvent<ASPxClientEditKeyEventHandler<ASPxClientTextEdit>>

Event Data

The KeyDown 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.


The editors' client-side functionality provides the ability to respond to key presses and releases made by end users. Each time an end-user presses a key while an editor has focus the KeyDown event fires. This event can be handled to implement custom processing of the pressed key.

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).


This example illustrates how to emulate the Tab key using the Enter key.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class _Default : System.Web.UI.Page {
    protected void Page_Load (object sender, EventArgs e) {

    protected void btn_Click (object sender, EventArgs e) {

See Also