Results 1 to 2 of 2

Thread: Dont work two-way binding for store record.

    Success! Looks like we've fixed this one. According to our records the fix was applied for a bug in our system in a recent build.
  1. #1
    Sencha User
    Join Date
    May 2014
    Posts
    10
    Vote Rating
    1
      0  

    Default Dont work two-way binding for store record.

    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
    Code:
     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
    Code:
     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

  2. #2
    Sencha Premium User evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    19,215
    Vote Rating
    1008
      0  

    Default

    We've modified the way that records bind in viewmodels, should be fixed in the next release.

    Thanks for the post.
    Twitter - @evantrimboli
    Former Sencha framework engineer, available for consulting.
    As of 2017-09-22 I am not employed by Sencha, all subsequent posts are my own and do not represent Sencha in any way.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •