You found a bug! We've classified it as TOUCH-4525 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    4
    Vote Rating
    0
    Creyke is on a distinguished road

      0  

    Exclamation Update single record - re-renders entire store ! TODO: implement logic!!!!!

    Update single record - re-renders entire store ! TODO: implement logic!!!!!


    Hi Sencha Team,


    We recently upgraded to Sencha 2.2


    Its been a painful process so far but we feel the upgrade will be worth it as we will now be able to scroll large lists using the android native browser.


    We have discovered that there as been a change to the way lists items are now rendered that has become a show stopper for us.


    When updating a single record in Sencha 2.0 only the elements in the DOM within the record were updated.


    var recordIndex = this._marketsStore$4.findExact('MarketId', marketId);
    var record = this._marketsStore$4.getAt(recordIndex);
    record.set('IsExpanded',expanded);

    Now it seems in Sencha 2.2 ALL DOM elements in a store are re-rendered even if one single property of a record is update.

    Please can you inform us how is it possible to update a single record in a store and only have the updated data be re-rendered NOT the entire store of data.

    Here is the problem in your code. Your TODO needs to be done. Please fix this ASAP.

    // Handling adds and removes like this is fine for now. It should not perform much slower then a dedicated solution
    // TODO: implement logic to not do full refreshes when this list is non-infinite
    onStoreAdd: function() {
    this.doRefresh();
    },

    Thank you for your time and see you at Senchacon.

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,015
    Vote Rating
    847
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Thanks for the report! I have opened a bug in our bug tracker.

  3. #3
    Sencha Premium Member
    Join Date
    Sep 2012
    Posts
    4
    Vote Rating
    0
    Creyke is on a distinguished road

      0  

    Default


    Hi Mitchell,

    Would you be able to provide us with a date we can have the fix. I can not stress how urgently we require this fix, our clients are expecting a deployment which we cant deliver until this bug has been resolved.

    Thank you for your time.

Thread Participants: 1

Tags for this Thread