editInit()

in sample/frontend/src/app/financial-grid/financial-grid.component.ts [51:66]


  editInit($event: any) {
    switch ($event.field.columnDef.field){
      case 'accountType':
        this.reference = this.grid.accountTypes;
        this.referenceLabel = 'accountType';
        this.editValue.value = this.reference.find(item=>item.id == $event.data.data.accountType.id);
        break;
      case 'transactionType':
        this.reference = this.grid.transactionTypes;
        this.referenceLabel = 'transactionType';
        this.editValue.value = this.reference.find(item=>item.id == $event.data.data.transactionType.id);
        break;
      default:
        this.editValue.value = ColumnHelper.getColumnValue($event.data.data,$event.field.columnDef)
    }
  }