Sencha-touch : refresh list : store

后端 未结 3 1362
后悔当初
后悔当初 2020-12-30 15:57

I have a list of news in a Ext.List inside a panel

prj.views.NewsList = Ext.extend(Ext.Panel, {
    layout: \'card\',
    initComponent: function() {     
           


        
3条回答
  •  旧巷少年郎
    2020-12-30 16:38

    I do this when changing the store and it works like a champ

    var yourbutton = new Ext.Panel({
        listeners: {
            afterrender: function(c){
                c.el.on('click', function(){
                    YourList.update();
                    YourList.bindStore(newStore);
                });
            }
        }
    });
    

提交回复
热议问题