質問
AppSDK2 RC2は、RallyGridsのColumnCFGSの幅パラメータを無視しているようです。
例えば:
xtype: 'rallygrid',
columnCfgs: [
{dataIndex: 'ValueScore', width: 40, text:'Value'}
]
.
RC1では40ピクセル幅でレンダリングしますが、RC2にはありません。これはバグですか、それともパラメータが変更されましたか?これには解決策がありますか?
解決
これは2.0rc2リリースのバグです。今のところ、Flexを含めることによって回避できます。列設定でNULLが誤っていることを上書きしてください。
xtype: 'rallygrid',
columnCfgs: [
{dataIndex: 'ValueScore', width: 40, text:'Value', flex: null}
]
.
欠陥が送信され、これは次のリリースに固定されるべきです。
他のヒント
カスタムストアに基づいてバグがグリッドに影響を与えないように見えます。これはRC2アプリです(あなたはフルコード HEREF=" https://help.rallydev.com/apps/2.0rc2/doc/#sev.com/api/rally.data.custom.store "rel=" nofollow noreferrer "を備えた" )> rally.data.custom.Store clumncfgsで指定された幅は予想される効果があります:
_createTestSetGrid: function(testsets) {
var testSetStore = Ext.create('Rally.data.custom.Store', {
data: testsets,
pageSize: 100,
});
if (!this.down('#testsetgrid')) {
this.grid = this.add({
xtype: 'rallygrid',
itemId: 'testsetgrid',
store: testSetStore,
columnCfgs: [
{
text: 'Formatted ID', dataIndex: 'FormattedID', xtype: 'templatecolumn',
tpl: Ext.create('Rally.ui.renderer.template.FormattedIDTemplate')
},
{
text: 'Test Case Count', dataIndex: 'TestCaseCount',
},
{
text: 'Test Case Status', dataIndex: 'TestCaseStatus', width: 200, //width: 40
},
{
text: 'TestCases', dataIndex: 'TestCases',
renderer: function(value) {
var html = [];
Ext.Array.each(value, function(testcase){
html.push('<a href="' + Rally.nav.Manager.getDetailUrl(testcase) + '">' + testcase.FormattedID + '</a>')
});
return html.join(', ');
}
}
]
});
}else{
this.grid.reconfigure(testSetStore);
}
}
.
幅が200に設定されているTestCasesStatus列は次のようになります。
と幅が40に設定されている:
所属していません StackOverflow