在Angular Kendo Grid中,如果您想要在失焦时触发响应式网格编辑添加行状态改变的订阅,可以尝试以下解决方法:
import { Component, OnInit, OnDestroy } from '@angular/core';
import { Subscription } from 'rxjs';
import { GridDataResult, PageChangeEvent, RowClassArgs } from '@progress/kendo-angular-grid';
@Component({
  selector: 'app-grid',
  templateUrl: './grid.component.html',
  styleUrls: ['./grid.component.css']
})
export class GridComponent implements OnInit, OnDestroy {
  private rowSubscription: Subscription;
  public gridData: GridDataResult;
  constructor() { }
  ngOnInit() {
    // 订阅行状态改变事件
    this.rowSubscription = this.gridData.edit.subscribe((args) => {
      // 在此处执行逻辑
      console.log(args);
    });
  }
  ngOnDestroy() {
    // 取消订阅以避免内存泄漏
    this.rowSubscription.unsubscribe();
  }
}
  
    
   
  
    
    
   
 
请注意,这只是一个示例解决方法,您可能需要根据您的具体需求进行调整。此外,确保已正确导入所需的Kendo Angular Grid模块和指令。