-
1 Dec 2011 4:48 AM #1
Ext.dataview.List's preventSelectionOnDisclose not working
Ext.dataview.List's preventSelectionOnDisclose not working
REQUIRED INFORMATION
Ext version tested:- Sencha Touch 2.0PR2
- Chrome 15 (Windows)
- Ext.dataview.List - preventSelectionOnDisclose has no effect
- Set "preventSelectionOnDisclose" to true
- Items don't get selected when the disclosure icon is tapped
- Items get selected when the disclosure icon is tapped
Code:Ext.regModel('Contact', { fields: ['firstName', 'lastName'] }); var store = new 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: 'Jason', lastName: 'Johnston'} ] }); var list = new Ext.List({ fullscreen: true, itemTpl: '<div class="contact">{firstName} <strong>{lastName}</strong></div>', store: store, onItemDisclosure: function(){console.log("disclosure");}, preventSelectionOnDisclose: true });
HELPFUL INFORMATION
Operating System:- Windows 7
---
Oussama Mubarak // Semiaddict
-
1 Dec 2011 9:02 AM #2Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
Thank you for the report.
-
12 Jan 2012 9:27 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,651
- Vote Rating
- 14
This has been fixed for the next release.
-
18 Apr 2013 5:49 AM #4
Ext.dataview.List's preventSelectionOnDisclose not working again.
Sencha Touch 2.1.1 - OK
Sencha Touch 2.2 Final - not working
-
10 May 2013 3:04 PM #5
I can also confirm this.
It's not working with v2.2
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1158
in
2.0.


Reply With Quote