"selection aggregate" functionality does not display sum.

1 Answer 57 Views
Grid
CARLOS
Top achievements
Rank 1
CARLOS asked on 22 Jan 2024, 05:41 PM

I have a grid that I make a request for and when the number column is selected, it is not displaying the sum in the toolbar.

Here's the example in stackblitz:

https://stackblitz.com/edit/angular-hjbr9g-stgeu8?file=src%2Fapp%2Fapp.component.ts,src%2Fapp%2Fapp.service.ts,src%2Fapp%2Fapp.module.ts

 

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 25 Jan 2024, 12:16 PM

Hi Carlos,

Thank you for the provided example.

Firstly, I observed that both the data property and the data binding directive are being used in the Grid, which is not considered a correct configuration. The Grid should utilize either the data or the data binding directive. Documentation on the data binding:

https://www.telerik.com/kendo-angular-ui/components/grid/data-binding/local-data/

I assume that this was the setup due to an error that occurs if only the data property binding is used. It seems that when the data is slightly delayed it breaks the selection logic which is considered a bug on our side:

https://github.com/telerik/kendo-angular/issues/4201

A workaround for this would be to ensure that the data is available before initializing the Grid component using the ngIf directive:

https://stackblitz.com/edit/angular-hjbr9g-wwzdby?file=src%2Fapp%2Fapp.component.ts

Our team apologizes for the inconvenience caused by the bug until it is resolved on our side. 

Regards,
Yanmario
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
CARLOS
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or