首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > Ajax >

关于EXTjs的一个小疑点

2012-08-11 
关于EXTjs的一个小问题我现在的页面布局是这样的,在formpanel中嵌套一个gridpanel,但是我现在想嵌套一个Ed

关于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 这句是不是不需要?

热点排行