PDA

View Full Version : [FIXED] Dont work two-way binding for store record.



Zalex28
20 May 2014, 2:20 AM
I try bind record from store to form. I need bind one field for two (or more) textfields.
I tryed two method:
1. Set in viewModel record
this.getViewModel().set('record1', this.store.getAt(0));
It works, but when i changed value in first field in second field dont refreclect changes.
2. Set in viewModel record data
this.getViewModel().set('record1', this.store.getAt(0).data);
Its reflect changes, but dont fire changed event in store.

sample. https://fiddle.sencha.com/#fiddle/5vq

evant
20 May 2014, 2:32 AM
We've modified the way that records bind in viewmodels, should be fixed in the next release.

Thanks for the post.