Archive Group row value from detail row

Posted by: md.datnguyen on 8 October 2019, 6:19 am EST

    • Post Options:
    • Link

    Posted 8 October 2019, 6:19 am EST

    Hi,

    There is a way to get Group Row item value from detail row?

    Following custom aggregation example on demo site , thru grid formatitem handler, we can check if that is stay in group row and easily to get group value.

    but, if cell is not in group rows (-means detail row) , can we get the group row object which cell is belongs to?

    For example , how can caculate ColC valule below

    by exp ColC = ColB/Sum(colB)



    ColA ColB ColC

    AAA 7 7/7

    1 1/7

    2 2/7

    4 4/7

    BBB 5 5/5

    5 3/5

    2 2/5

    https://www.grapecity.com/wijmo/demos/Grid/Aggregation/Customaggregation/purejs
  • Posted 8 October 2019, 6:26 am EST - Updated 3 October 2022, 7:03 pm EST

    i re attach image for example

  • Posted 9 October 2019, 1:37 am EST

    Hi,

    To get the current group of a data item, you may use the groups property of the CollectionView class. This property is an array that contains all of the groups created. Please refer to the sample link below for reference:

    https://stackblitz.com/edit/js-zzyjgz

    Let me know if this was your requirement.

    Regards,

    Ashwin

    API Reference:

  • Posted 9 October 2019, 2:56 am EST

    Hi Ashwin,

    I have not try yet but i thinks that is all i needed!

    Thank you for your support!

    best regard!

  • Posted 9 October 2019, 11:14 pm EST

    Hi,

    Yes please take your time to try the solution and let us know if you require any further information.

    ~regards

Need extra support?

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

Learn More

Forum Channels