RadDataForm - Update Editor Value from Model


#1

Hi! I’m trying to update a value from Angular ViewModel into Editor in RadDataForm.
How i can achieve this ?

We tried:

export class RegistroComponent implements OnInit {

**@Input() private _model: InserirAplicacao;**

...

public onPropCommitted(args) {
let propName = args.propertyName;

        **this._zone.run(() => {**
            this.calculateVolume();
        });
}

_get inserirModel(): InserirAplicacao {_

_ return this.model;
_ }_

public calculateVolume() {
    if (this._model == null)
        return;

   this._model.valueProduct = 200.99 * 0.5;
}

}

Does the property above (this._model) has to be changed to an Observable ?

There are some sample in github on update a value from ViewModel ?

Thanks!