|Re: Modify the update strategy of a binding after creation [message #1362828 is a reply to message #1353030]
||Sat, 17 May 2014 21:09
| Erdal Karaca
Registered: July 2009
You should call Binding.dispose(), then you can re-bind the observables with new policies, DatabindingContext.removeBinding() will just remove it from its internal list (without de-coupling the observables)...|
Xavipen Mising name wrote on Tue, 13 May 2014 20:53
Is there a way to modify the Update Policy in an already created binding, like:
Binding b = context.bindValue(uiElement, modelElement, targetToModel ( POLICY_NEVER ), modelToTarget (POLICY_UPDATE));
As an alternative I have also try to remove the binding from the databinding context. like: One Action will call dataBindingContext.removeBinding(myBinding);
However, after running dataBindingContext.removeBinding(myBinding) I still see the changes in the UI.
Is there a way to "activate"/"deactivate" bindings? Could someone point my in the right direction?
Thanks in Advance
Powered by FUDForum
. Page generated in 0.02089 seconds