Skip to main content

ASPxClientTextEdit.TextChanged Event

Fires when the control accepts the new text value entered by a user.

Declaration

TextChanged: ASPxClientEvent<ASPxClientProcessingModeEventHandler<ASPxClientTextEdit>>

Event Data

The TextChanged event's data class is ASPxClientProcessingModeEventArgs. The following properties provide information specific to this event:

Property Description
processOnServer Specifies whether or not to process the event on the server.

Remarks

The control raises the TextChanged event after it accepts the text value entered by a user. To accept the new value, a user can press Enter, or defocus the text field (press Tab, or click another page area).

To react to any key press, handle the KeyUp event.

The event’s processOnServer argument property specifies whether to finally process the event on the server and fire the ASPxTextEdit.TextChanged event or completely handle the TextChanged event on the client-side.

<dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" KeyFieldName="CustomerID"
    ClientInstanceName="grid">
    <Columns>
        <dx:GridViewCommandColumn ShowDeleteButton="True" ShowEditButton="True" ShowNewButtonInHeader="True"/>
        <dx:GridViewDataTextColumn FieldName="CompanyName">
            <PropertiesTextEdit>
                <ClientSideEvents TextChanged="OnTextChanged" />
            </PropertiesTextEdit>
        </dx:GridViewDataTextColumn>
        <dx:GridViewDataTextColumn FieldName="ContactName"/>
    </Columns>
    <SettingsEditing Mode="Inline" />
</dx:ASPxGridView>
function OnTextChanged(s, e) {
    grid.SetEditValue("ContactName", "Check the company name");
}

ASPxGridLookup Limitation

  • When the ASPxGridLookup editor’s value changes, the editor sends a callback to the server to synchronize its value with the internal ASPxGridView control’s selection. Because of this, the server-side ASPxTextEdit.TextChanged event fires before the client-side TextChanged event.
See Also