JavaScript/jQuery ValidationGroup Methods
See Also
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
dispose()
After calling this method, remove the DOM element associated with the UI component:
$("#myValidationGroup").dxValidationGroup("dispose"); $("#myValidationGroup").remove();
Use this method only if the UI component was created with jQuery or pure JavaScript. In Angular, Vue, and React, use conditional rendering:
Angular
<dx-validation-group ... *ngIf="condition"> </dx-validation-group>
Vue
<template> <DxValidationGroup ... v-if="condition"> </DxValidationGroup> </template> <script> import DxValidationGroup from 'devextreme-vue/validation-group'; export default { components: { DxValidationGroup } } </script>
React
import React from 'react'; import ValidationGroup from 'devextreme-react/validation-group'; function DxValidationGroup(props) { if (!props.shouldRender) { return null; } return ( <ValidationGroup ... > </ValidationGroup> ); } class App extends React.Component { render() { return ( <DxValidationGroup shouldRender="condition" /> ); } } export default App;
See Also
element()
An HTML element or a jQuery element when you use jQuery.
See Also
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
getInstance(element)
getInstance is a static method that the UI component class supports. The following code demonstrates how to get the ValidationGroup instance found in an element with the myValidationGroup
ID:
// Modular approach import ValidationGroup from "devextreme/ui/validation_group"; ... let element = document.getElementById("myValidationGroup"); let instance = ValidationGroup.getInstance(element) as ValidationGroup; // Non-modular approach let element = document.getElementById("myValidationGroup"); let instance = DevExpress.ui.dxValidationGroup.getInstance(element);
See Also
instance()
See Also
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
off(eventName)
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
off(eventName, eventHandler)
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
on(eventName, eventHandler)
Use this method to subscribe to one of the events listed in the Events section.
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
on(events)
Use this method to subscribe to several events with one method call. Available events are listed in the Events section.
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
option()
Gets all UI component properties.
See Also
- Get and Set Options
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
option(optionName)
See Also
- Get and Set Options
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
option(optionName, optionValue)
See Also
- Get and Set Options
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
option(options)
See Also
- Get and Set Options
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
reset()
Resets the value and validation result of the editors that are included to the current validation group.
resetOption(optionName)
See Also
- Call Methods: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
validate()
Validates rules of the validators that belong to the current validation group.
As an alternative to this method, you can use the DevExpress.validationEngine.validateGroup(group) function passing the current group as a parameter.
If you have technical questions, please create a support ticket in the DevExpress Support Center.