PDA

View Full Version : counting and grouping



mille07
25 Oct 2012, 4:53 AM
how to count rows in grid that are in the same group:
for example i have a grid with column items 'male' and 'female' and i need to count how many males and females is there in my grid so that i can show it's ratio in pie chart
i grouped my grid by 'gender' field but i dont know how to get the numbers to show in chart

thanks for help

working example on : http://jsfiddle.net/sqga4/

mitchellsimoens
27 Oct 2012, 1:11 AM
You would have to iterate through the store to count how many in each group.