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.PerformValidationInContainerById(containerId) Method

Performs unobtrusive validation for editors in the specified container.

Declaration

static PerformValidationInContainerById(containerId: string, validateInvisibleEditors?: boolean): boolean

Parameters

Name Type Description
containerId string

The ID of 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 ID of 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.

e.processOnServer = MVCxClientEdit.PerformValidationInContainerById("div1", true);
NOTE

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

See Also