Skip to content

Access all data when calculating summary per column #5754

Closed
@hanastasov

Description

@hanastasov

Is your feature request related to a problem? Please describe.

Depending on a business logic, a value from column X may be needed to calculate summaries for column Y. For example, lets define a custom summary:

class MySummary extends IgxNumberSummaryOperand {
    operate(data?: any[]): IgxSummaryResult[] {
        // data only contains the data for the corresponding column Y
        // some would like to access value from column X for the given record
        return result;
    }
}

Describe the solution you'd like

When the operate method is called, have the option to access other fields data as well.

Describe alternatives you've considered

A complete manual calculating of sumamries that is rendered inside the grid footer. Makes no use of igxGrid Summaries

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions