Javascript 失去';格式化ID';应用样式更改后的链接

Javascript 失去';格式化ID';应用样式更改后的链接,javascript,rally,Javascript,Rally,我为ColumnCFG设置了具有以下设置的rallygrid对象: columnCfgs: [ 'FormattedID', 'Name', 'PlanEstimate' ] 这给了我一个很好的格式化链接,指向“FormattedID”字段中的UserStory。问题是,我不喜欢页面上列的布局方式,因此我将FormattedID列更改为: { text: 'ID', dataIndex: 'FormattedID', width: 60 } 这为我提供了正确的列间距,

我为ColumnCFG设置了具有以下设置的rallygrid对象:

columnCfgs: [
    'FormattedID',
    'Name',
    'PlanEstimate'
]
这给了我一个很好的格式化链接,指向“FormattedID”字段中的UserStory。问题是,我不喜欢页面上列的布局方式,因此我将FormattedID列更改为:

{ text: 'ID', dataIndex: 'FormattedID', width: 60 }

这为我提供了正确的列间距,但字段文本不再直接链接到它引用的用户故事。如何更改列宽,同时保持良好的格式?

您可以使用FormattedIDTemplate类正确设置链接的格式:

{
    text: 'ID',
    width: 60,
    xtype: 'templatecolumn',
    tpl: Ext.create('Rally.ui.renderer.template.FormattedIDTemplate')
}
请注意,FormattedIDTemplate类被标记为private,它的接口可能会在sdk的未来版本中更改