IgxGridValidationService

new IgxGridValidationService(): IgxGridValidationService

Returns IgxGridValidationService

Gets whether state is valid.

get valid(): boolean

Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:19

Returns boolean

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: any

    Optional. The key of the record for which to clear state.

Returns void

Returns all invalid record states.

getInvalid(): IRecordValidationState[]

Defined in projects/igniteui-angular/grids/core/src/grid-validation.service.ts:144

Returns IRecordValidationState[]

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

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

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: any

    The id of the record that will be marked as touched.

  • field: string

    Optional. The field from the record that will be marked as touched. If not provided all fields will be touched.

Returns void