You found a bug! We've classified it as TOUCH-3927 . We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
  1. #1
    Sencha User
    Join Date
    Nov 2007
    Posts
    6
    Vote Rating
    0
    misc is on a distinguished road

      0  

    Default missing records in Ext.List

    missing records in Ext.List


    hi,

    i'm using sencha touch 2.1 and there seems to be problem of missing records - it only happens randomly so i was not able to pinpoint the possible cause. i'm testing on android 2.3.5 and latest version of chrome on desktop, and it seems that the chance of hitting this problem is higher on device than on desktop browser. usually the last 1-2 records added to the store are not shown in the list.

    here is a segment of code, with variables renamed:

    Code:
        
        this.do_model = Ext.define("SampleDataObject", {
            extend: 'Ext.data.Model',
            config:{
                fields:[
                    {name: 'code', type: 'string'},
                    {name: 'title', type: 'string'}
                ]
            }
        });
    
        this.store_models = Ext.create("Ext.data.Store", {
            model: this.do_model
        });
    
        this.listview_lister = Ext.create('Ext.List', {
            store: this.store_models,
            itemTpl: '{title}'
        });
    
        var array_codes = ["A", "B", "C", "D"];
        var array_titles = ["aaa", "bbb", "ccc", "ddd"];
        
        for (var i = 0; i < array_codes.length; i++){
            this.store_models.add({
                code: array_codes[i],
                title: array_titles[i]
            });
        }
        
        Ext.getCmp("panel_abcd").add(this.listview_lister);
        this.listview_lister.refresh();
    this problem appears about once per 10 trials on android device, and the chance on chrome desktop is lower.

    anyone hitting the same problem?

    misc

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,217
    Vote Rating
    859
    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.

Thread Participants: 1