How to sum user data using customGroupFormat and forEachRowI

Hi,



I want to sum user data and display it in the grid group header.



User data is loaded with xml (within )

9.9



I’ve got a customGroupFormat hook up to the grid



I want to know how to use forEachRowInGroup to loop and return the sum of each user data DureeCumuleeDecimal in the group and then display it in the group header.



Here’s what I want to get : Sum DureeCumuleeDecimal = 11.65



Here is the grid xml



<?xml version="1.0" encoding="iso-8859-1"?>

Ligne

OF

Produit

Description

D�but

Fin



Dur�e cumul�e

Arr�ts Direct

Arr�ts Ind.

Efficacit�

Dur�e MOD

Moy. MOD



Std. MOD

Dur�e MOI







    px









LGN0118579WEB041472009-02-10 07:002009-02-10 16:549h549.90h356h1531.0%29h423.08313h30LGN0118579WEB041472009-02-10 07:002009-02-10 16:541h451.750h356h1531.0%29h423.08313h30







Thank you.

Please check this article dhtmlx.com/dhxdocs/doku.php?id=d … grouping&s[]=groupby#math_operations_in_group-by_mode


I did check it. But I would like to get a working and more meaningfull sample of grid.forEachRowInGroup



Thank you.

dhtmlx.com/dhxdocs/doku.php?id=d … terating&s[]=foreachrowingroup#iteration_through_rows_in_group_grid_after_groupby

I could not get the articles provided by the support team…Can I please get it again? I am having the same type of problem.

http://docs.dhtmlx.com/doku.php?id=dhtmlxgrid:iterating&s#iteration_through_rows_in_group_grid_after_groupby