Skip to main content

ASPxClientEdit.ValidateEditorsInContainerById(containerId) Method

Performs validation of the editors which are located within the specified container and belong to a specific validation group, dependent on the visibility state specified.

Declaration

static ValidateEditorsInContainerById(
    containerId: string,
    validationGroup?: string,
    validateInvisibleEditors?: boolean
): boolean

Parameters

Name Type Description
containerId string

A string value specifying the editor container’s identifier.

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

This method allows you to programmatically perform client-side validation of editors belonging to a specific container.

Important

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

Note

If the containerID 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 containerID and validationGroup parameters are set to null, the method clears all/visible (under the validateInvisibleEditors parameter value) editors on a page.

See Also