This is a migrated thread and some comments may be shown as answers.

subtraction between rows of same group

2 Answers 86 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Anna
Top achievements
Rank 1
Anna asked on 29 Sep 2015, 12:36 AM

Hi,

 I want to do subtraction between rows of a same group in the kendo grid (see attachment). I understand that aggregates doesn't support subtraction, and I'm encouraged to call functions from the groupFooterTemplate. However, I'm find it difficult to track which group I'm calculating the value for. What's the recommended way?

2 Answers, 1 is accepted

Sort by
0
Anna
Top achievements
Rank 1
answered on 30 Sep 2015, 05:22 PM
I'm not sure if there's a better solution to this. I dealt with it by calculating the differences myself and insert them as rows into my data. Then in the template, style that row differently (I put a attribute to identify itself).
0
Accepted
Alexander Popov
Telerik team
answered on 01 Oct 2015, 06:51 AM
Hello Ama,

Indeed, this behavior is not supported out of the box and can only be achieved using a custom implementation. The approach you described is more or less what we would have suggested as well.

Regards,
Alexander Popov
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Grid
Asked by
Anna
Top achievements
Rank 1
Answers by
Anna
Top achievements
Rank 1
Alexander Popov
Telerik team
Share this question
or