Skip to main content
A newer version of this page is available. .

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