Jan 12, 2013, 8:40 AM
[CLOSED] SummaryColumn Condition
Hi,
I have a gridpanel with a summarycolumn. I want to have a conditional sum by looking to another column. If the other column is 'P' then i will be '+', if it is 'M' i will be '-'. How can i do this?
col A / col B
P / 100
P / 50
M / 25
P / 10
Total/ 135
I have a gridpanel with a summarycolumn. I want to have a conditional sum by looking to another column. If the other column is 'P' then i will be '+', if it is 'M' i will be '-'. How can i do this?
col A / col B
P / 100
P / 50
M / 25
P / 10
Total/ 135
<ext:GridPanel ID="gp1" runat="server" StoreID="Store1" >
<ColumnModel runat="server">
<Columns>
<ext:Column runat="server" Width="50" DataIndex="PM" />
<ext:SummaryColumn runat="server" Width="90" DataIndex="Value" SummaryType="Sum" Align="Right">
<Renderer Fn="Ext.util.Format.numberRenderer('0,000.00')" />
<SummaryRenderer Fn="Ext.util.Format.numberRenderer('0,000.00')" />
</ext:SummaryColumn>
</Columns>
</ColumnModel>
<Features>
<ext:Summary runat="server" />
</Features>
</ext:GridPanel>
Thanks.
Last edited by Daniil; Jan 14, 2013 at 11:13 AM.
Reason: [CLOSED]