2011-11-08 2 views
0

J'ai la liste des articles, tandis que cliquez sur l'élément de la liste particulière, il montrera les détails de cet article .. J'ai un problème, pour le premier article, cliquez sur le résultat correct, mais en cliquez sur le point suivant, je reçois que les détails de l'élément particulier mais montrant l'ancien article details.This est mon codecomment mettre à jour ou actualiser le contenu du panneau à onglets dans sencha touch

RadMobApp.views.patPanel = Ext.extend(Ext.Panel, { 
    id: 'pathView', 
    layout : 'fit', 
initComponent: function() { 
     this.titleTxtc = new Ext.Component({ 
      cls : 'top_title_text', 
      html: 'History' 
     }); 
     this.backButton = new Ext.Button({ 
       text: 'back', 
       height:15, 
       ui:'back', 
       handler: function() { 
          controller.showPanel(); 
          }, 
       scope: this 
     }); 
     this.titleBar = new Ext.Toolbar({ 
      dock: 'top', 
      cls: "top_tool_bar2", 
      height: 42, 
      items: [this.backButton, {xtype: 'spacer'}, this.titleTxtc, {xtype: 'spacer'}] 
     }); 

     var tabs = new Ext.TabPanel({ 
      xtype:"tabpanel", 
      id: 'tabpanel', 
      renderTo: Ext.getBody(), 
      width:400, 
      height: 150, 
      activeTab: 0, 
      layoutOnTabChange: true, 
      tabBar: { 
      cls: "top_tab_panel1", 
      height: 42, 
      style: 'padding-left:2px;' 
      }, 
      items: [{ 
       xtype: 'Panel1',  
       id: 'panel1', 
       title: 'Panel1', 
       height: 100 
      },{ 
       xtype: 'Panel2', 
       id: 'panel2', 
       title: 'Panel2', 
       height: 100 
      },{ 
       xtype: 'panel3', 
       id: 'panel3', 
       title: 'Panel3', 
       height: 100, 
       listeners: { 
        beforeshow: function(p) { 
         scope: this; 
         /* var tabPanel = p.ownerCt; 
         var tabEl = tabPanel.getTabEl(prmPanel); 
         Ext.fly(tabEl).child('span.x-tab-strip-text', 
          true).qtip = 'Tab is now enabled';  
         Ext.getCmp('panel2').enable(); */   
        } 
       } 
      }] 
     }); 

     this.dockedItems = [this.titleBar]; 
     this.items = [tabs]; 
     RadMobApp.views.patPanel.superclass.initComponent.call(this); 
    } 

}); 

comment effacer le panneau onglet? Merci à l'avance

Répondre

0

essayez de mettre l'option de configuration

remoteFilter: true

à votre magasin à partir duquel vous chargez les données au list.ie

new Ext.data.Store({ 
     model: 'Test', 
     sortOnLoad: true, 

     remoteFilter : true, 
     autoLoad: true, 
     getGroupString : function(record) { 
      return record.get('FullName_FirstLast')[0]; 
     }, 
     proxy: { 
      type: 'ajax', 
      url : testUrl, 
      reader: { 
       type: 'json', 
       root: 'test' 
      } 
     } 

    }) 
Questions connexes