2009年5月4日星期一

在Ext GridPanel中设置某一列不参与分组的办法

假设你已经有一个包含分组的Grid,在其设置column的地方设置属性groupable:false。
见代码:
           {
                id: 'cost',
                header: "Cost",
                width: 20,
                sortable: false,
                groupable: false,
                dataIndex: 'cost',
                summaryType:'totalCost',
                summaryRenderer: Ext.util.Format.usMoney
            } 

    没有评论:

    发表评论