Tuesday, 12 October 2021

kendo grid sum of the column

 make sme or aggarate of the particular column look at this Link

look at this data



import { process, State, aggregateBy, AggregateResult, AggregateDescriptor } from "@progress/kendo-data-query"; on constructor top
public aggregates: AggregateDescriptor[] = [
  { field: "units", aggregate: "sum" },];
 filed name wich u want to sum from grid

then pass data to this function
  const count= aggregateBy(this.array3, this.aggregates);
     
        this.totalOldCrtSAN=count.units.sum;

this.array3 is gird data and second step is final result.

No comments:

Post a Comment

Meet BootUI | Scan AI-Generated Code & Find What AI Missed !

 very usefull link to verify ai content https://www.youtube.com/watch?v=pULGt0Rme58 Click