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

Jul 28 2009 Published by Tony under Javascript

假设你已经有一个包含分组的Grid,在其设置column的地方设置属性groupable:false。
见代码:

{
                id: 'cost',
                header: "Cost",
                width: 20,
                sortable: false,
                groupable: false,
                dataIndex: 'cost',
                summaryType:'totalCost',
                summaryRenderer: Ext.util.Format.usMoney
            }

No responses yet