Constructors
Section titled "Constructors"IgxGridValidationService
new IgxGridValidationService(): IgxGridValidationService Returns IgxGridValidationService
Accessors
Section titled "Accessors"valid
Section titled "valid"Gets whether state is valid.
get valid(): boolean Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:19
Returns boolean
Methods
Section titled "Methods"clear
Section titled "clear"Clears validation state by key or all states if none is provided.
clear(key: any): void Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:214
Parameters
- key:
anyOptional. The key of the record for which to clear state.
Returns void
getInvalid
Section titled "getInvalid"Returns all invalid record states.
getInvalid(): IRecordValidationState[] Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:144
Returns IRecordValidationState[]
isFieldInvalid
Section titled "isFieldInvalid"Checks the validity of the native ngControl
isFieldInvalid(formGroup: FormGroup, fieldName: string): boolean Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:108
Parameters
- formGroup:
FormGroup - fieldName:
string
Returns boolean
isFieldValidAfterEdit
Section titled "isFieldValidAfterEdit"Checks the validity of the native ngControl after edit
isFieldValidAfterEdit(formGroup: FormGroup, fieldName: string): boolean Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:116
Parameters
- formGroup:
FormGroup - fieldName:
string
Returns boolean
markAsTouched
Section titled "markAsTouched"Marks the associated record or field as touched.
markAsTouched(key: any, field: string): void Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:188
Parameters
- key:
anyThe id of the record that will be marked as touched.
- field:
stringOptional. The field from the record that will be marked as touched. If not provided all fields will be touched.