-
22 Jan 2013 2:56 AM #1
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:
this problem appears about once per 10 trials on android device, and the chance on chrome desktop is lower.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();
anyone hitting the same problem?
misc
-
22 Jan 2013 7:19 AM #2Sencha - Senior Forum Manager
- Join Date
- Mar 2007
- Location
- St. Louis, MO
- Posts
- 33,599
- Vote Rating
- 434
Thanks for the report! I have opened a bug in our bug tracker.
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.


Reply With Quote