Ext grid 合计行

//合计列 summaryRenderer:function(){return '<b>合计</b>'}}, {header: "<fmt:message key='awPlanAllocate.buyOrgName' />", width: 140, sortable: true, locked:false, dataIndex: 'BUY_ORG_NAME',summaryRenderer:function(){return '<b>合计</b>'}}, //需要合计列 summaryType: 'sum' {header: "计划总量", width: 100, sortable: true, locked:false, dataIndex: 'HTL',css:'{text-align:right}',renderer:awPlanAllocate.weightRender,summaryType: 'sum'}, //不需要合计列 menuDisabled:true {header: "计量单位", width: 100, sortable: true, menuDisabled:true,locked:false, dataIndex: 'auditFlag',renderer:function(){return Ext.getCmp('s_unit').getRawValue();}} gird属性 summary:true

你可能感兴趣的:(Ext grid 合计行)