-
10 Dec 2011 8:42 AM #1
Strange behavior of DataView in PR3
Strange behavior of DataView in PR3
If I add "emptyText: '..'" to dataview the records from store are displayed twice?

Code:
index.htmlCode:Ext.setup({ tabletStartupScreen: 'tablet_startup.png', phoneStartupScreen: 'phone_startup.png', icon: 'icon.png', glossOnIcon: false, onReady : function() { Ext.create('Ext.Panel', { fullscreen: true, layout: 'fit', items: [{ xtype: 'dataview', store: { fields: ['firstName', 'lastName'], data: [ {firstName: 'Tommy', lastName: 'Maintz'}, {firstName: 'Ed', lastName: 'Spencer'}, ], }, itemTpl: '<div>{lastName}, {firstName}</div>', //emptyText: '..', }] }); } });
Code:<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width initial-scale=1.0 maximum-scale=1.0 minimum-scale=1.0 user-scalable=0" /> <link rel="stylesheet" href="android.css" type="text/css"> <title>List</title> <script type="text/javascript" src="sencha-touch-all-debug.js"></script> <script type="text/javascript" src="src/index.js"></script> <style> .x-item-pressed { background-color: #add8e6; } </style> </head> <body></body> </html>
-
11 Dec 2011 3:18 PM #2
I'm seeing one duplicate entry (only the first entry) in my app which uses a grouped store/list. I am not using a proxy. I am manually adding records to the store. I am not using empty text yet.
-
12 Dec 2011 9:37 AM #3Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
Thank you for the report.
-
14 Dec 2011 11:12 AM #4Sencha - Sencha Touch Dev Team
- Join Date
- Mar 2007
- Location
- Redwood City, California
- Posts
- 3,653
- Vote Rating
- 14
This issue has been resolved for the next release.
-
14 Dec 2011 8:42 PM #5
Success! Looks like we've fixed this one. According to our records the fix was applied for
TOUCH-1229
in
2.0.


Reply With Quote