MVCxClientUtils.PerformValidationInContainerById(containerId) Method
Performs unobtrusive validation for editors in the specified container.
Declaration
static PerformValidationInContainerById(
containerId: string,
validateInvisibleEditors?: boolean
): boolean
Parameters
Name | Type | Description |
---|---|---|
containerId | string | The ID of an HTML element that contains editors. |
validateInvisibleEditors | boolean | true, to validate visible and invisible DevExpress editors in the container; otherwise, to validate only visible editors. |
Returns
Type | Description |
---|---|
boolean | true, if editors in the container pass the validation’ otherwise, false. |
Remarks
Call this method to perform unobtrusive validation for editors in the specified container on the client side.
The container parameter should contain an ID of an Html element located within the form tag (Html.BeginForm). If this argument is empty, the unobtrusive validation checks visible and/or invisible editors (validateInvisibleEditors parameter) in all forms on a page.
e.processOnServer = MVCxClientEdit.PerformValidationInContainerById("div1", true);
Note
Use the ValidateEditorsInContainer(container) and ValidateEditorsInContainerById(containerId) methods to perform the built-in validation for editors in the specified container.