Skip to main content

ASPxClientEdit.ValidateEditorsInContainer(container) Method

Validates all editors in a specified visibility state, which are located within a specified container and belong to a specific validation group.

Declaration

static ValidateEditorsInContainer(
    container: any,
    validationGroup?: string,
    validateInvisibleEditors?: boolean
): boolean

Parameters

Name Type Description
container any

An HTML element that contains editors.

validationGroup string

The validation group’s name.

validateInvisibleEditors boolean

true to validate both visible and invisible editors that belong to the specified container and group; false to validate only visible editors.

Returns

Type Description
boolean

true if the specified editors pass validation; otherwise, false.

Remarks

Call this method to programmatically validate editors in the specified container on the client side.

Important

Use the PerformValidationInContainer(container) and PerformValidationInContainerById(containerId) methods to perform unobtrusive validation for editors in the specified container.

Note

If the container parameter is set to null, the method validates all/visible (under the validateInvisibleEditors parameter value) editors which belong to a specific validation group.

If the validationGroup parameter is set to null, the method validates all/visible (under the validateInvisibleEditors parameter value) editors located within the specified container.

If both the container and validationGroup parameters are set to null, the method validates all/visible (under the validateInvisibleEditors parameter value) editors on a page.

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