Extjs 如何使用户故事ID在rally中的自定义报告中充当链接
我已经创建了一个报告,其中显示了用户故事ID、故事名称、故事的当前看板状态以及故事在每个状态中停留的总天数,如下面使用extjs所示。但我希望ID在报告中充当链接,当单击时,它应该显示故事信息,就像在看板中单击用户故事时,它如何显示故事信息一样Extjs 如何使用户故事ID在rally中的自定义报告中充当链接,extjs,rally,extjs5,code-rally,Extjs,Rally,Extjs5,Code Rally,我已经创建了一个报告,其中显示了用户故事ID、故事名称、故事的当前看板状态以及故事在每个状态中停留的总天数,如下面使用extjs所示。但我希望ID在报告中充当链接,当单击时,它应该显示故事信息,就像在看板中单击用户故事时,它如何显示故事信息一样 var gridbox = Ext.create('Ext.grid.Panel', { store: data, columnLines: true,
var gridbox = Ext.create('Ext.grid.Panel', {
store: data,
columnLines: true,
columns: [
{
text: 'Formatted ID',
dataIndex: 'FormattedID',
},
{
text: 'Name',
dataIndex: 'Name',
},
{
text: 'Current Kanban State',
dataIndex: 'c_Kanban',
},
{
text: 'Ready',
dataIndex: 'ready',
},
{
text: 'In Development',
dataIndex: 'indev',
componentCls:'columnstyle',
},
{
text: 'Development Done',
dataIndex: 'devdone',
}
],
viewConfig: {
stripeRows: true
}
});
this.add(gridbox);`
您不在AppSDK中使用该组件有什么原因吗?这应该为您连接正确的FormattedID渲染器,此外还应与产品的其余部分保持一致的样式:
this.add({
xtype: 'rallygrid',
columnCfgs: [
'FormattedID',
'Name',
{
text: 'Current Kanban State',
dataIndex: 'c_Kanban'
},
'Ready',
{
text: 'In Development',
dataIndex: 'indev',
componentCls:'columnstyle',
},
{
text: 'Development Done',
dataIndex: 'devdone',
}
],
enableEditing: false,
showRowActionsColumn: false,
store: data,
columnLines: true,
viewConfig: {
stripeRows: true
}
});
您不在AppSDK中使用该组件有什么原因吗?这应该为您连接正确的FormattedID渲染器,此外还应与产品的其余部分保持一致的样式:
this.add({
xtype: 'rallygrid',
columnCfgs: [
'FormattedID',
'Name',
{
text: 'Current Kanban State',
dataIndex: 'c_Kanban'
},
'Ready',
{
text: 'In Development',
dataIndex: 'indev',
componentCls:'columnstyle',
},
{
text: 'Development Done',
dataIndex: 'devdone',
}
],
enableEditing: false,
showRowActionsColumn: false,
store: data,
columnLines: true,
viewConfig: {
stripeRows: true
}
});
..@Kyle Morse我正在使用网格面板获得可排序、可锁定、锁定等功能。我需要在水平移动时固定列标题和少数列,就像锁定网格一样。例如:那么,你能告诉我如何使用网格来获得链接吗@凯尔·穆赛亚。rally grid只是扩展了Ext.grid.Panel,所以我认为大部分这些东西应该仍然可以工作。。。但无论如何,我会尝试挖掘代码来连接FormattedID渲染器…看看这个答案:我使用了上面的链接代码。但它仍然不起作用,这种联系还没有形成。var grid=Ext.create('Ext.grid.Panel',{xtype:'rallygrid',store:data,columnLines:true,id:'grid',columns:[{text:'Formatted id',dataIndex:'FormattedID',align:'center',locked:true,componentCls:'style',xtype:'templatecolumn',tpl:Ext create('Rally.ui.renderer.template.FormattedIDTemplate')),@Kyle Morse..@Kyle Morse我正在使用网格面板获得可排序、可锁定、锁定等功能。我需要固定列标题,并在水平移动时固定少数列,就像锁定网格一样。示例:那么你能告诉我怎么做吗有网格来获取链接吗?@Kyle Morseah。拉力网格只是扩展了Ext.grid.Panel,所以我认为大部分的东西应该仍然可以工作……但无论如何,我会尝试挖掘代码来连接格式化的ID渲染器……看看这个答案:我使用了你上面的链接代码。但是它仍然不工作。链接没有形成。var grid=Ext.create('Ext.grid.Panel',{xtype:'rallygrid',store:data,columnLines:true,id:'grid',columns:[{text:'FormattedID',dataIndex:'FormattedID',align:'center',locked:true,componentCls:'style',xtype:'templatecolumn',tpl:Ext create('Rally.ui.renderer.template.FormattedIDTemplate')),@Kyle Morse