How to achieve custom aggregate using FlexGrid + Angular 2

Posted by: ross-zhu on 14 September 2017, 2:54 am EST

    • Post Options:
    • Link

    Posted 14 September 2017, 2:54 am EST

    Hi Support,

    I am looking for a solution to weighted average on grouped cells. From this link, it looks like “custom” is not one of Wijmo’s standard aggregate types. I found another thread talking about something like groupAggregate, however I have no idea how this works and I didn’t find this method in FlexGrid’s Class definition

    Could anybody help?

  • Posted 14 September 2017, 2:54 am EST

    Hi Ross, This issue has been already being logged as an enhancement request to the development team with tracking id 236552. In the mean time, you can use custom aggregate function using formatItem event handler.

    PS: You need to set predefined aggregate property for the column, you want to apply custom aggregate function.

    For reference, please see the attached sample.

    Thanks , Manish Kumar Gupta 2017/02/

  • Posted 14 September 2017, 2:54 am EST

    The example looks great! Thanks, Manish.

  • Posted 3 June 2018, 9:46 pm EST

    Hi Manish,

    may i have one example for ASP.Net MVC about customize Group header for FlexGrid ?

    or this has been developed as new feature?

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels