All docs
V20.1
20.1
19.2
The page you are viewing does not exist in version 19.2. This link will take you to the root page.
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

MVCxClientUtils.PerformValidationInContainer(container) Method

Performs unobtrusive validation for editors in the specified container.

Declaration

static PerformValidationInContainer(container: any, validateInvisibleEditors?: boolean): boolean

Parameters

Name Type Description
container any

An HTML element that contains editors.

validateInvisibleEditors boolean

true, to validate visible and invisible DevExpress editors in the container; otherwise, to validate only visible editors.

Returns

Type Description
boolean

true, if editors in the container pass the validation' otherwise, false.

Remarks

Call this method to perform unobtrusive validation for editors in the specified container on the client side.

The container parameter should contain an Html element located within the form tag (Html.BeginForm). If this argument is empty, the unobtrusive validation checks visible and/or invisible editors (validateInvisibleEditors parameter) in all forms on a page.

<dx:ASPxCallbackPanel ID="My_Panel" runat="server" ClientInstanceName="panel"  ...>
NOTE

Use the ValidateEditorsInContainer(container) and ValidateEditorsInContainerById(containerId) methods to perform the built-in validation for editors in the specified container.

See Also