Threaded View
-
10 Aug 2010 12:59 PM #1
[FIXED-213] List not refreshing snapshot when calling loadRecords
[FIXED-213] List not refreshing snapshot when calling loadRecords
As can be seen below, after modifying the store by calling loadData, the snapshot is not updated to reflect the latest clean data source, but instead represents the first loaded data source. I'm doing advanced filtering in my application (because NestedList is not yet inheriting from list, so I'm basically coding NestedList with filters). To workaround for now I am calling "delete store.snapshot;" before "store.loadData(..."
Code:Ext.setup({ onReady: function () { var data = []; for (var x = 0; x < 100; x++) data[data.length] = { html: x }; new Ext.List({ fullscreen: true, store: new Ext.data.Store({ fields: ['html'] }), tpl: new Ext.XTemplate('<tpl for="."><div class="list-item">{html}</div></tpl>'), itemSelector: '.list-item', dockedItems: [{ dock: 'top', xtype: 'button', text: 'shorten list', handler: function () { var store = this.ownerCt.getStore(); store.loadData([{ html: 'invisible'}]); alert(store.snapshot.getCount()); } }] }).getStore().loadData(data); }});
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
Snapshot in Store
By harsha_velicheti in forum Ext 3.x: Help & DiscussionReplies: 1Last Post: 6 Feb 2012, 8:32 AM -
Refreshing a list's view
By danvega in forum Sencha Touch 1.x: DiscussionReplies: 2Last Post: 22 Jul 2010, 4:55 AM -
[OPEN] [FIXED] A ComboBox's empty text is not shown when calling clearInvalid
By Jose Jeria in forum Ext GWT: Bugs (2.x)Replies: 2Last Post: 8 Sep 2009, 10:46 AM -
[FIXED] List.add(List) in BeanModelReader
By sdc in forum Ext GWT: Bugs (1.x)Replies: 3Last Post: 16 Jul 2008, 11:50 PM


Reply With Quote