-
25 Aug 2010 7:15 PM #1
[FIXED] sorters config option for Ext.data.Store issue.
[FIXED] sorters config option for Ext.data.Store issue.
The code displays a List that contains two items 'Tommy', 'Ed'.Code:Ext.setup({ onReady : function() { Ext.regModel('Contact', { fields: ['firstName', 'lastName'] }); var groupingBase = { fullscreen: true, tpl: '<tpl for="."><div class="contact"><strong>{firstName}</strong> {lastName}</div></tpl>', itemSelector: 'div.contact', singleSelect: true, store: new Ext.data.Store({ model: 'Contact', sorters: 'firstName', data: [ {firstName: 'Tommy', lastName: 'Maintz'}, {firstName: 'Ed', lastName: 'Spencer'} ] }), listeners: { itemtap: function(dataView, index, item, e) { alert(dataView.getSelectedRecords()[0].get('firstName')); } } }; new Ext.List(groupingBase); } });
When you tap 'Tommy'. Then you can see the message 'Ed'.
And when you tap 'Ed'. Then you can see the message 'Tommy'.
Probably Store and View is not Synchronized.
sorters config option for Ext.data.Store is undocumented.
but examples\list\src\index.js uses this config option.
-
25 Aug 2010 9:45 PM #2
What build are you running? I tried your test case with the latest from Git and it worked as I would expect.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
-
25 Aug 2010 10:25 PM #3
I used Sencha Touch 0.93.
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FIXED-130] Remove issue of Ext.data.Store
By leeby in forum Sencha Touch 1.x: BugsReplies: 1Last Post: 28 Jul 2010, 11:30 AM -
[FIXED-448][2.1+,3.x] Ext.Panel.tools align config option
By Condor in forum Ext 3.x: BugsReplies: 4Last Post: 19 Jan 2010, 5:59 AM


Reply With Quote