Skip to main content

ASPxClientCardViewBatchEditApi.GetGroupSummaryValue(groupRowVisibleIndex, summaryItemIndex) Method

Returns the group summery value.

Declaration

GetGroupSummaryValue(
    groupRowVisibleIndex: number,
    summaryItemIndex: number | string
): number

Parameters

Name Type Description
groupRowVisibleIndex number

The group row’s visible index.

summaryItemIndex string | number

The summary’s index or field name.

Returns

Type Description
number

The group summary value.

Remarks

The example below illustrates how to use the GetGroupSummaryValue method.

<dx:ASPxCardView ID="CardView" runat="server" DataSourceID="InvoicesDataSource" ClientInstanceName="cardView" >
    <Columns>
        <dx:CardViewTextColumn FieldName="UnitPrice">
            <PropertiesTextEdit DisplayFormatString="c" />
        </dx:CardViewTextColumn>
        <dx:CardViewTextColumn FieldName="Quantity" />
        <dx:CardViewTextColumn FieldName="Total" />
        </dx:CardViewTextColumn>
    </Columns>
    <GroupSummary>
        <dx:ASPxCardViewSummaryItem FieldName="Total" SummaryType="Sum" />
    </GroupSummary>
</dx:ASPxCardView>
<br />
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Get summary value" >
    <ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
See Also