【问题标题】:Adding sencha component in expandedrow在扩展行中添加煎茶组件
【发布时间】:2015-11-10 12:46:48
【问题描述】:

我想添加将在何时展开的网格面板 用户 DblClick 行 所以我可以在行中添加更多细节 是否还有其他我应该添加的属性

     this.msGroupFlowGridPanel = msGroupFlowGridPanel = new Ext.grid.Panel(
     {
        itemId: "msGroupFlowGridPanel",
        store: msGroupFlowStore,
        columns:
        [
           {
              text: this.msGroupFlow_IssueText,
              dataIndex: "issue",
              flex: 1,
              scope: this,
              editor:
              {
                 xtype: "combobox",
                 store: issueStore,
                 displayField: "text",
                 valueField: "value",
                 forceSelection: true,
                 queryMode: "local"
              }

           },
           {
              text: this.msGroupFlow_NextIssueText,
              dataIndex: "nextIssue",
              flex: 1,
              editor:
              {
                 xtype: "combobox",
                 store: issueStore,
                 displayField: "text",
                 valueField: "value",
                 forceSelection: true,
                 queryMode: "local"
              } 
           },
           {
              xtype: "actioncolumn",
              flex: 1,
              scope: this,
              text: this.deleteText,
              icon: "Images/Grid_Delete.png",
              handler: this.onDeleteActionColumnClick
           }
        ],
        plugins:
        [
           {
              ptype: "cellediting",
              clicksToEdit: 1
           },
           {
              ptype: 'rowexpander',
              rowBodyTpl:
              [
                  '<b> here is the place where i want to add grid panel</b>  '
              ]
           }
        ]
     });

我想在 rowBodyTpl 中添加网格面板:??像图片中的这个

【问题讨论】:

    标签: extjs


    【解决方案1】:

    我相信不可能只在模板中创建一个新的 xtype:'gridpanel'。

    Is it possible to use an xtype inside an ExtJS template

    我要做的是创建一个 html 表格模板来保存相应的数据。祝你好运

    【讨论】:

      猜你喜欢
      • 2011-06-11
      • 1970-01-01
      • 2011-12-25
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多