Skip to main content

ASPxClientEdit.Validate Method

Performs the editor’s validation.


Validate(): void


This method allows you to programmatically perform client-side validation of the editor control.

A call to the Validate generates the ASPxClientEdit.Validation event.


View Example

<strong>2. Validating a single editor via a script:</strong>
<br /><br />
            <input type="button" value="Validate" onclick="ASPxClientControl.GetControlCollection().GetByName('tbTextBox2').Validate();" style="width: 127px;" />
            <dx:ASPxTextBox ID="tbTextBox2" runat="server" ClientInstanceName="tbTextBox2" Width="170px">
                <ValidationSettings validateonleave="False">
                    <RequiredField IsRequired="True" ErrorText="Field is required." />
See Also