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

[Solved] Implementing standard deviation aggregate for the whole grid as well as for groups

3 Answers 207 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Eugene
Top achievements
Rank 1
Eugene asked on 05 Jan 2015, 09:28 PM
I would like to implement a standard deviation aggregate for the entire grid as well as for individual groups.  I found this article which describes a workaround for introducing custom aggregates http://www.telerik.com/forums/how-to-do-custom-aggregate-functions.

Is following that example my best bet.  In my case I actually need to get access to the constituents of each group in order to recalculate the standard deviation.

Is there a better method for accomplishing what I need?  Has custom aggregates feature been requested and is it something you are considering implementing?

Thanks a lot.

--e 


3 Answers, 1 is accepted

Sort by
0
Petur Subev
Telerik team
answered on 08 Jan 2015, 07:43 AM

Hello Eugene,

 

As my colleague Alex mentioned custom aggregates are not supported and any progress on implementing such feature should be noted on our official feedback portal:

http://kendoui-feedback.telerik.com/forums/127393-telerik-kendo-ui-feedback

In the work-around which invokes a function inside the template i.e. #= someFunction(foo, bar) # you can only pass aggregates defined for the entire Grid, you cannot access the collection of the aggregates in the different groups. Also notice that only aggregates for the visible groups are calculated, not for the whole Grid on all the pages.

 

Kind Regards,
Petur Subev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
0
Eugene
Top achievements
Rank 1
answered on 08 Jan 2015, 07:12 PM
But if I use DataSource.view and calculate my own aggregates from scratch can I get all groups or will view only have visible groups?

--e
0
Petur Subev
Telerik team
answered on 09 Jan 2015, 10:02 AM

Hello Eugene,

The view() method of the dataSource will always return the items / (or gruops if the Grid is grouped) for the current page, you wont have the collection of grouped items for the other pages.

Kind Regards,
Petur Subev
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
Eugene
Top achievements
Rank 1
Answers by
Petur Subev
Telerik team
Eugene
Top achievements
Rank 1
Share this question
or