Use groupdirective="kendogridGroupBinding" in kendo-grid and add a button that run as (click)="groupDirective.expandAll()" and (click)="groupDirective.collapseAll()"