New to Kendo UI for Angular? Start a free 30-day trial

Select All Checkbox Is Not Working beside Angular Material CDK Overlay in the Grid

Environment

ProductProgress® Kendo UI® for Angular Grid

Description

When the Grid select-all feature is enabled and Angular Material CDK Overlay is activated on the same page, the select-all checkbox is not working.

Cause

The Angular Material CDK Overlay attaches a click event listener to document.body, which triggers the Change Detection and prevents the select-all checkbox from functioning correctly.

Solution

If the Grid is within an Angular Material Dialog, open the dialog outside of the Angular Zone.

    public openDialog(): void {
        this.zone.runOutsideAngular(() => {
            this.dialogRef = this.dialog.open(DialogContent);
        });
    }

In this article

Not finding the help you need?