A newer version of this page is available. Switch to the current version.

ASPxClientEdit.ValidateEditorsInContainer(container) Method

Performs validation of 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 specifying the container of editors to be validated.

validationGroup string

A string value that specifies 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 perform client-side validation of editors based on specified settings.

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.

See Also