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.

Optional Parameters

Name Type Default Description
validationGroup string null

A string value that specifies the validation group's name.

validateInvisibleEditors boolean null

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.

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