ASPxEdit.ClearEditorsInContainer(Control) Method
Assigns a null value to all visible editors that are located within the specified container object.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v18.2.dll
Declaration
Parameters
Name | Type | Description |
---|---|---|
container | Control | A Control object that specifies the container of editors. |
Remarks
This method can be used to reset the specified visible editors to null values while performing validation.
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 btnAgain_Click(object sender, EventArgs e)
{
FormPanel.Visible = true;
SuccessPanel.Visible = false;
ASPxEdit.ClearEditorsInContainer(FormPanel);
}
See Also