If I add "emptyText: '..'" to dataview the records from store are displayed twice?
Code:
Code:
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: '..',
            }]
        });
    }
});
index.html
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>