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

关于extjs treepanel的问题!
 var viewport = new Ext.Viewport
                ({
                    id: 'vpMain',
                    layout: 'border',
                    items:
                    [
                        pnlLeft
                                        ]
                });

        //创建menu
                var CreateMenuPanel = function(title, TypeID) {
                    return new Ext.Panel
                  ({
                      title: title,
                      layout: 'fit',
                      border: false,
                      frame: true,
                      items:
                        [{
                            xtype: 'treepanel',
                            singleExpand: true,
                            animate: true,
                            autoScroll: true,
                            containerScroll: true,
                            border: false,