简体   繁体   中英

list mask in sencha touch

I am using List control to display data in grouped order. The Store related to the list is loaded from the controller. here is my list view...

{
            id: 'teamListId',
            xtype: 'list',
            scrollable: true,
            itemTpl: new Ext.XTemplate('<div class="teamInfo">',
                                '<div class="teamName">{teamName}</div>',
                                    '<tpl if="isMyTeam === true">',
                                        '<div class="teamStatus teamStatusYes"></div>',
                                    '<tpl else>',
                                        '<div class="teamStatus teamStatusNo"></div>',
                                    '</tpl>',
                            '</div>'),
            store: 'Team',
            itemCls: 'teamListItem',
            action: 'teamListItemTap',
            grouped: true,
            flex : 1
        },

And here is the code to load the store

var teamStore = Ext.getStore('Team');
    teamStore.load({
        params: {
            id : 5,
            email : userId
        }
    });

It works fine most of the time BUT sometime loadmask doesn't get removed.. and keeps displaying it indefinitely even after store is loaded successfully. I used unmask() and setMasked(false) of list but no luck so far..

您可以通过在列表视图中显式声明此配置来禁用该加载掩码:

loadingText: false

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM