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

ASPxClientTextEdit.UserInput Event

Fires on the client side when the editor's input value is changed before the focus moves out of the editor by end-user interactions.

Declaration

UserInput: ASPxClientEvent<ASPxClientEventHandler<ASPxClientTextEdit>>

Event Data

The UserInput event handler receives an argument of the ASPxClientEventArgs type.

Remarks

The UserInput event is raised on the client side when the input value of the text editor changes before focus moves out of the editor. The UserInput event raises before the ASPxClientEdit.ValueChanged event. Handle the UserInput event to respond to an end-user changing the editor's input value.

Note
  • By design, the UserInput event is raised only in response to end-user actions.
  • The GetText method returns a string calculated based on a current editor's value and the editor's formatting settings (mask settings, the DisplayFormatString and EditFormatString properties, etc.). In this case, it is required to synchronize a text entered by an end user with an editor's value before you use the GetText method. For example, if an editor loses focus, the editor automatically calculates (synchronizes) its value based on the entered text.

    The GetText method returns an empty value or a previous editor's text if you call this method before the editor calculates its a new editor's value. For example, in the client-side UserInput, KeyDown, KeyPress, KeyUp event handlers, this method will return an empty value or a previous editor's text. In this case, obtain an editor's text directly from the editor's input element:

    function OnUserInput(s, e) {  
        var currentText = s.GetInputElement().value;  
    }  
    

    See also: Bug Report: ASPxTextBox - The client-side GetText method returns an empty value if a text decoration (for example, a null text) is applied to editor

See Also