Marc Oberlé
Marc Oberlé

Reputation: 100

Angular-xeditable - Editable Row - Change Value

I try to set a value of a select control to null when a checkbox is unchecked.

I try with onbeforesave and onaftersave but i want to do it dynamicly , so i used e-ng-change. I want also to not change the value if i cancel my changes but i can't access to the control value.

You can see the code here : http://jsfiddle.net/NfPcH/2833/

In normal forms, i set the value like this but here i don't have any know access

sco.editableForm.name.$setViewValue("1234")

Regards,

Marc

Upvotes: 2

Views: 1322

Answers (1)

Marc Oberlé
Marc Oberlé

Reputation: 100

I found a solution of my problem to set value in editable mode :

sco.rowform.$editables[2].scope.$data = null;

Upvotes: 3

Related Questions