Skip to content

Replies

0
Akshay Kale
Akshay Kale answered on Jul 17, 2019 9:58 AM

Thanks Petko!

I'm able to calculate the sum of selected rows.

Also, I'm using summaries attribute on igx-column like as below : 

[summaries]="sumSummary"

class SumSummary extends IgxNumberSummaryOperand {
constructor() {
super();
}

public operate(data?: any[]): IgxSummaryResult[] {
const result = [];
result.push({
key: "sum",
label: "",
summaryResult: IgxNumberSummaryOperand.sum(data)
});
return result;
}
}

is there any way where i can assign my custom selected rows sum to the summeries.
Do i need to call operate function explicitly? OR
showing sum on custom div instead of using summeries attribute would be easier?


Thanks,
Akshay