Success! Looks like we've fixed this one. According to our records the fix was applied for TOUCH-1229 in a recent build.
  1. #1
    Sencha User
    Join Date
    Oct 2011
    Location
    Kyiv, Ukraine
    Posts
    12
    Vote Rating
    0
    Donbydon is on a distinguished road

      0  

    Default 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:
    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>

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Posts
    127
    Vote Rating
    0
    robl is on a distinguished road

      0  

    Default


    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.

  3. #3
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    Thank you for the report.

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #4
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Vote Rating
    18
    Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough Jamie Avins is a jewel in the rough

      0  

    Default


    This issue has been resolved for the next release.

    Sencha Inc

    Jamie Avins

    @jamieavins

  5. #5
    Sencha User
    Join Date
    Dec 2011
    Posts
    4
    Vote Rating
    0
    mrVinh is on a distinguished road

      0  

    Default


    Quote Originally Posted by robl View Post
    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.
    Thank you for the report.