筛选器控件组件是否可用于Grid/TreeGrid (类似于Portfolio Items仪表板中的筛选器)?根据SDK2.0文档,这个组件似乎只适用于GridBoard。
发布于 2015-04-13 21:29:37
gridboard是树网格或板子的包装器,filtercontrol插件应该与TreeGrid一起工作。下面是一个将enableHierarchy设置为true和一个rallygridboardcustomfiltercontrol插件的树形网格的示例:
Ext.define('CustomApp', {
extend: 'Rally.app.App',
componentCls: 'app',
launch: function() {
Ext.create('Rally.data.wsapi.TreeStoreBuilder').build({
models: ['userstory'],
autoLoad: true,
enableHierarchy: true
}).then({
success: this._onStoreBuilt,
scope: this
});
},
_onStoreBuilt: function(store) {
var modelNames = ['userstory'];
var context = this.getContext();
this.add({
xtype: 'rallygridboard',
modelNames: modelNames,
context:context,
enableHierarchy: 'true',
toggleState: 'grid',
plugins: [
{
ptype: 'rallygridboardcustomfiltercontrol',
filterControlConfig: {
modelNames: modelNames
}
}
],
cardBoardConfig: {
attribute: 'ScheduleState'
},
gridConfig: {
store: store,
columnCfgs: [
'Name',
'ScheduleState',
'Owner',
'PlanEstimate'
]
},
height: this.getHeight()
});
}
});https://stackoverflow.com/questions/29569410
复制相似问题