Threaded View
-
8 Jan 2012 7:50 PM #1
if pin header of the grouped list view works on ST 2.0?
if pin header of the grouped list view works on ST 2.0?
Hi guys,
The grouped list view's pin header feel confused.
bug.jpgfine.jpg
https://github.com/nelstrom/Sencha-Touch-list-view-demo works fine.please see the screenshot above.
Code:Ext.define('Contact', { extend: 'Ext.data.Model', fields: ['firstName', 'lastName'] }); Ext.application({ name: "ListDemo", launch: function(){ var store = Ext.create('Ext.data.JsonStore', { model: 'Contact', sorters: 'lastName', getGroupString: function(record) { return record.get('lastName')[0]; }, data: [ {firstName: 'Tommy', lastName: 'Maintz'}, {firstName: 'Rob', lastName: 'Dougan'}, {firstName: 'Ed', lastName: 'Spencer'}, {firstName: 'Jamie', lastName: 'Avins'}, {firstName: 'Aaron', lastName: 'Conran'}, {firstName: 'Dave', lastName: 'Kaneda'}, {firstName: 'Jacky', lastName: 'Nguyen'}, {firstName: 'Abraham', lastName: 'Elias'}, {firstName: 'Jay', lastName: 'Robinson'}, {firstName: 'Nigel', lastName: 'White'}, {firstName: 'Don', lastName: 'Griffin'}, {firstName: 'Nico', lastName: 'Ferrero'}, {firstName: 'Nicolas', lastName: 'Belmonte'}, {firstName: 'Jay', lastName: 'Robinson'}, {firstName: 'Nigel', lastName: 'White'}, {firstName: 'Don', lastName: 'Griffin'}, {firstName: 'Nico', lastName: 'Ferrero'}, {firstName: 'Nicolas', lastName: 'Belmonte'}, {firstName: 'Jason', lastName: 'Johnston'} ] }); var listPanel = Ext.create('Ext.List', { store: store, allowDeselect: false, itemTpl: '<div class="contact">{firstName} {lastName}</div>', onItemDisclosure: function(record, btn, index) { console.log('in'); }, grouped: true //indexBar: true }); Ext.Viewport.add(listPanel); } });
Looks like we can't reproduce the issue or there's a problem in the test case provided.


Reply With Quote