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

关于EXTjs的一个小问题
我现在的页面布局是这样的,在formpanel中嵌套一个gridpanel,但是我现在想嵌套一个EditorGridPanel怎么嵌套呢? 代码如下:
 var gridForm = new Ext.FormPanel({
  id: 'company-form',
  frame: true,
  labelAlign: 'left',
  title: '运营系统管理',
  bodyStyle: 'padding:5px',
  width: 850,
  layout: 'column',  
  items: [{
  columnWidth: 0.60,
  layout: 'fit',
  items: {
  xtype: 'grid',
  ds: ds,
  cm: colModel,
  bbar: new Ext.PagingToolbar({
  pageSize: 3,
  store: ds,
  displayInfo: true,
  displayMsg: '显示第 {0} 条到 {1} 条记录,一共 {2} 条',
  emptyMsg: "没有记录"
   
  }),


items的xtype:'grid',可是我现在想要一个EditorGridPanel嵌套,怎么改呀,或者是怎么加个属性就是EditorGridPanel了

------解决方案--------------------
这个也是问题?改掉这一行
JScript code
xtype: 'editorgrid'

------解决方案--------------------
一楼正解,但是你代码里好像有点其他问题。ds: ds 这句是不是不需要?