日期:2014-05-16  浏览次数:20347 次

ExtJs4.2中把Panel嵌入到tabPanel的问题
本人初学ExtJs,在实现一个在TabPanel中嵌入一个Panel的时候,一直显示不出来。
以下是部分代码:

  var docListSearchStore = ed.common.getStore({
        //something
        autoLoad: true  
      });
  var searchForm = new Ext.form.Panel({
        //something
      items : {
              store : docListSearchStore,
              },
        renderTo: Ext.getBody()
      });

  var treeStore =  Ext.create('Ext.data.TreeStore',{
                     root:{
                          expanded:true,
                          text:'Root',
                          children:[
                               {text:'p1',leaf:true},
                               {
                                    text:'p2',
                                    leaf:false,
                                    expanded:false,
                                    children:[
                                         {text:'p2-1',leaf:true},
                                         {
                                              text:'p2-2',