Aggregate in kendo grid react

1 Answer 67 Views
Grid
Rashmi
Top achievements
Rank 1
Veteran
Rashmi asked on 19 Dec 2023, 07:05 AM

Hi Team,

I am trying to implement aggregate in my grid which is written in class component.

I have to display aggregate both at top and bottom(in corresponding column) while doing grouping. I am unable to get "groupFooter as rowtype option while writing cellRender function.

 

Const cellRender = (tdElement,  cellProps) =>{

if(cellProps.rowType==="groupFooter"){

}

}

 

 

1 Answer, 1 is accepted

Sort by
0
Konstantin Dikov
Telerik team
answered on 19 Dec 2023, 04:28 PM

Hi Rashmi,

You can refer to the implementation in the following example, where the Grid displays aggregates for the groups:

As for displaying aggregates in the group header (if this is what you are referring to), please note that the KendoReact Grid does not support this. Such customization requires changing the group header row completely and adding custom cells for each column. Due to the layout of the group headers, it will also be necessary to remove span the first few cells in the group header, so that the group header value can be displayed. You can refer to the following example for displaying aggregates in the group header, but once again, note that this is a custom solution:

 

Regards,
Konstantin Dikov
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources!

Tags
Grid
Asked by
Rashmi
Top achievements
Rank 1
Veteran
Answers by
Konstantin Dikov
Telerik team
Share this question
or