All docs
V19.2
19.2
19.1
The page you are viewing does not exist in version 19.1. This link will take you to the root page.
18.2
The page you are viewing does not exist in version 18.2. This link will take you to the root page.
18.1
The page you are viewing does not exist in version 18.1. This link will take you to the root page.
17.2
The page you are viewing does not exist in version 17.2. This link will take you to the root page.

ASPxClientGridViewBatchEditApi.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 number|string

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:ASPxGridView ID="Grid" runat="server" ClientInstanceName="grid" ... >
    // ...
    <SettingsEditing Mode="Batch" />
    <ClientSideEvents BatchEditEndEditing="onBatchEditEndEditing" BatchEditSummaryDisplayText="onBatchEditSummaryDisplayText" />
    <GroupSummary>
        <dx:ASPxSummaryItem FieldName="ProductName" SummaryType="Count" />
        <dx:ASPxSummaryItem FieldName="Discount" SummaryType="Max" DisplayFormat="Max Discount = {0:p0}" />
        <dx:ASPxSummaryItem FieldName="Total" SummaryType="Sum" />
    </GroupSummary>
    // ...
</dx:ASPxGridView>

<br />
<dx:ASPxButton ID="ASPxButton1" runat="server" AutoPostBack="False" Text="Get summary value" >
    <ClientSideEvents Click="OnClick" />
</dx:ASPxButton>
See Also