【问题标题】:Drag/Drop Ranking of Portfolio Items投资组合项目的拖放排名
【发布时间】:2014-04-16 21:53:56
【问题描述】:

我正在尝试实现一个rallygrid,它利用了 Rally 提供的内置排名系统。我遇到了几个问题让这个工作:

  • 拖放功能似乎在生产 Rally 环境中根本不起作用,而 App-debug.html 版本确实允许我更改项目的排名。
  • 这两个版本都没有像在轨道选项卡上看到的那样在拖放列上提供任何格式(六个点)。这使得很难判断网格的排名是否可以调整。
  • 如果我禁用选择,排名将不再起作用。我相信这很可能与使用所选记录来保存新排名有关,但如果我至少可以使记录被选中的情况不明显,那就太好了。除了修改 CSS,我不确定是否有解决办法。

对于上下文,我使用的是 App SDK RC2,我的网格配置如下所示:

{
    xtype: 'rallygrid',
    model: 'PortfolioItem/Feature',
    enableRanking: true,
    columnCfgs: [{
        dataIndex: 'DragAndDropRank',
        maxWidth: 50
    },{
        dataIndex: 'FormattedID',
        maxWidth: 50
    },{
        dataIndex: 'Name',
        flex: 1,
        minWidth: 160
    },{
        dataIndex: 'PlannedStartDate',
        maxWidth: 90,
        align: 'center'
    },{
        dataIndex: 'PlannedEndDate',
        maxWidth: 90,
        align: 'center'
    },{
        dataIndex: 'ActualStartDate',
        maxWidth: 90,
        align: 'center'
    },{
        dataIndex: 'ActualEndDate',
        maxWidth: 90,
        align: 'center'
    },{
        dataIndex: 'PercentDoneByStoryCount',
        maxWidth: 90,
        align: 'center'
    },{
        dataIndex: 'PercentDoneByStoryPlanEstimate',
        maxWidth: 90,
        align: 'center'
    }]
}

【问题讨论】:

    标签: rally appsdk2


    【解决方案1】:

    我在 Rally 中测试了这个应用程序。当我单击排名列标题时,会出现六点拖放图标。网格应按等级排序,以便显示这些图标。

    这是部署html:

    <!DOCTYPE html>
    <html>
    <head>
        <title>features grid</title>
    
        <script type="text/javascript" src="/apps/2.0rc2/sdk.js"></script>
    
        <script type="text/javascript">
            Rally.onReady(function () {
                Ext.define('CustomApp', {
                extend: 'Rally.app.App',
                componentCls: 'app',
                launch: function() {
                    this.add({
                        xtype: 'rallygrid',
                        model: 'PortfolioItem/Feature',
                        enableRanking: true,
                        columnCfgs: [{
                            dataIndex: 'DragAndDropRank',
                            maxWidth: 50
                        },{
                            dataIndex: 'FormattedID',
                            maxWidth: 50
                        },{
                            dataIndex: 'Name',
                            flex: 1,
                            minWidth: 160
                        }]
                    });
                   }
                });
                Rally.launchApp('CustomApp', {
                    name:"features grid",
                    parentRepos:""
                });
    
            });
        </script>
        <style type="text/css">
            .app {
         /* Add app styles here */
    }
        </style>
    </head>
    <body></body>
    </html>
    

    但是 prod 和 debug 是有区别的。我注意到虽然可以在调试版本中拖放工件,但即使网格按等级排序,六点图标也不会出现。在 prod 中,在 Rally 中,只要网格按 Rank 排序,就可以拖放工件 - 此时会出现六点图标。

    【讨论】:

    • 完美,我发现我做错了什么......在 storeConfig 中,我有两个分类器应用于网格。一个用于排名(第一优先级),一个用于计划结束日期。通过具有两个排序属性,它在生产环境中搞砸了网格。现在一切都很好。谢谢尼克!
    猜你喜欢
    • 2019-11-10
    • 1970-01-01
    • 2011-02-25
    • 1970-01-01
    • 2020-10-13
    • 1970-01-01
    • 2018-03-24
    • 1970-01-01
    • 2016-07-26
    相关资源
    最近更新 更多