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

ASPxClientEdit.ClearEditorsInContainer(container) Method

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

Declaration

static ClearEditorsInContainer(
    container: any,
    validationGroup?: string,
    clearInvisibleEditors?: boolean
): void

Parameters

Name Type Description
container any

An HTML element specifying the container of editors to be validated.

validationGroup string

A string value specifying the validation group’s name.

clearInvisibleEditors boolean

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

Remarks

Call this method to programmatically clear the editors while performing client-side validation, based on specified settings.

NOTE

If the container parameter is set to null, the method clears all/visible editors which belong to validationGroup (similar to the ASPxClientEdit.ClearGroup method).

If the validationGroup parameter is set to null, the method clears all/visible editors located within the container.

If both the container and validationGroup parameters are set to null, the method clears all/visible editors on a page.

See Also