PDA

View Full Version : [CLOSED] how to pass group summary's Sum to direct event parameter



tobros
Oct 08, 2013, 6:22 AM
<ext:SummaryColumn runat="server" DataIndex="Jfje" Text="借方金额" SummaryType="Sum">
</ext:SummaryColumn>



<DirectEvents>
<ItemClick OnEvent="EditEventHandler">
<EventMask ShowMask="True"></EventMask>
<ExtraParams>
<ext:Parameter Name="sum" Value="App.GroupingSummary1.summaryRecord.data" Mode="Raw" /> //Cannot read property 'data' of undefined
</ExtraParams>

</ItemClick>
</DirectEvents>

Daniil
Oct 08, 2013, 6:30 AM
Hi @tobros,

I see it is stored here:

App.GroupingSummary1.refreshData.summaryData

It is an array of summary records for each group.

tobros
Oct 08, 2013, 6:40 AM
Hi @tobros,

I see it is stored here:

App.GroupingSummary1.refreshData.summaryData

It is an array of summary records for each group.

where to find the refreshData?
i can't in http://docs.ext.net/ and http://docs.extjs.com/

Daniil
Oct 08, 2013, 7:39 AM
It is a private thing.
http://docs.sencha.com/extjs/4.2.1/#!/api/Ext.grid.feature.Grouping-property-refreshData

It is not in API.