ASPxEdit.AreEditorsValid(Control) Method
Verifies whether visible editors with the specified settings are valid.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
container | Control | A Control object that specifies the container. |
Returns
Type | Description |
---|---|
Boolean | true if visible editors are valid; otherwise, false. |
Remarks
Note
The AreEditorsValid method does not perform validation, it only checks the validation state of editors.
Example
Note
A complete sample project is available at https://github.com/DevExpress-Examples/how-to-check-the-validation-state-of-editors-using-the-areeditorsvalid-method-e1844
protected void btnSubmit_Click(object sender, EventArgs e)
{
if (ASPxEdit.AreEditorsValid(FormPanel))
{
// TODO: Write data to database
FormPanel.Visible = false;
SuccessPanel.Visible = true;
btnAgain.Focus();
// Intentionally pauses server-side processing, to demonstrate the Loading Panel functionality.
Thread.Sleep(2000);
}
}
See Also