Ext.grid.GridPanel不能renderTo给一个DIV?

Ext.grid.GridPanel不能renderTo给一个DIV?

Ext.grid.GridPanel不能renderTo给一个DIV吗?
var gridMain = new Ext.grid.GridPanel({
    renderTo :"demoGrid",
          width: Ext.get('demoGrid').getWidth()*0.99,
    height : 395,
    enableHdMenu : false,
    enableColumnMove : false,
    viewConfig: {
           forceFit: true
       },
       items: [{
              tbar: [{  
                  text: '添加' 
              },  
              '-', {  
                  text: '删除' 
              },  
              '-', {  
                  text: '修改' 
              }],  
              listeners: { 
                  'render': function () {  
                      oneTbar.render(this.tbar); //add one tbar     
                      twoTbar.render(this.tbar); //add two tbar
                  }
              }  
          }]
   });

错误如下:


快快乐乐、认认真真生活才是真。

你可能感兴趣的:(Ext.grid.GridPanel不能renderTo给一个DIV?)