Sencha touch Sencha Touch Ext.List未填入存储的数据

Sencha touch Sencha Touch Ext.List未填入存储的数据,sencha-touch,Sencha Touch,Ext.List不填充存储的数据,只显示两行空列表项。当我使用firebug进行调试时,我看到存储区中充满了json数据中的信息,但并没有显示列表项 存储对象 Ext.define('MyApp.store.ListStore', { extend: 'Ext.data.Store', autoLoad: true, config: { model: 'MyApp.model.NewsData', fields: [{ name: 'haberId', mapping: 'ha

Ext.List不填充存储的数据,只显示两行空列表项。当我使用firebug进行调试时,我看到存储区中充满了json数据中的信息,但并没有显示列表项

存储对象

Ext.define('MyApp.store.ListStore', {
extend: 'Ext.data.Store',
autoLoad: true,

config:
{
    model: 'MyApp.model.NewsData',
    fields: [{ name: 'haberId', mapping: 'haberId' },
            { name: 'haberGonderen', mapping: 'haberGonderen' },
            { name: 'haberDetay', mapping: 'haberDetay' },
            { name: 'haberZaman', mapping: 'haberZaman'}]
},

proxy: {
    id: 'ListStore',
    access: 'public'
}});
新闻对象

Ext.define('MyApp.model.NewsData', {
extend: "Ext.data.Model",
config: {
    fields: [
        'haberId',
        'haberGonderen',
        'haberDetay',
        'haberZaman'
    ]


}});
列表视图

Ext.define('MyApp.view.ListTemplate', {
extend: 'Ext.List',
title: 'Haber Listesi',
store : 'ListStore',
fullscreen: true,
itemTpl : '{haberGonderen}'});

有人知道吗?

试试这个。也许这对你有帮助

Store.js

        Ext.define('MyApp.store.ListStore', {
        extend: 'Ext.data.Store',
        config:
        {   
            autoLoad: true,
            model: 'MyApp.model.NewsData',
            proxy: {
            id: 'ListStore',
            access: 'public'
            },
            fields: [{ name: 'haberId', mapping: 'haberId' },
                    { name: 'haberGonderen', mapping: 'haberGonderen' },
                    { name: 'haberDetay', mapping: 'haberDetay' },
                    { name: 'haberZaman', mapping: 'haberZaman'}]
        }

        });
        Ext.define('MyApp.view.ListTemplate', {
        extend: 'Ext.List',
        config: {
        fullscreen: true,
        title: 'Haber Listesi',
        store : 'ListStore',
        itemTpl : '{haberGonderen}'
        }

        });
ListTemplate.js

        Ext.define('MyApp.store.ListStore', {
        extend: 'Ext.data.Store',
        config:
        {   
            autoLoad: true,
            model: 'MyApp.model.NewsData',
            proxy: {
            id: 'ListStore',
            access: 'public'
            },
            fields: [{ name: 'haberId', mapping: 'haberId' },
                    { name: 'haberGonderen', mapping: 'haberGonderen' },
                    { name: 'haberDetay', mapping: 'haberDetay' },
                    { name: 'haberZaman', mapping: 'haberZaman'}]
        }

        });
        Ext.define('MyApp.view.ListTemplate', {
        extend: 'Ext.List',
        config: {
        fullscreen: true,
        title: 'Haber Listesi',
        store : 'ListStore',
        itemTpl : '{haberGonderen}'
        }

        });