我想添加将在何时展开的网格面板 用户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> '
]
}
]
});
答案 0 :(得分:0)
我认为不可能只创建一个新的xtype:&#39; gridpanel&#39;在模板中。
Is it possible to use an xtype inside an ExtJS template
我要做的是创建一个包含相应数据的html表模板。祝你好运