PDA

View Full Version : GroupingSummary get GroupField value



agk23
6 Dec 2013, 7:56 AM
Hello,
I want to conditionally format the summary values in a grid based on the value of the group field it is summarizing. I was looking through the arguments that get passed in the "summaryRenderer" function of a column, however I couldn't figure out a way to get the data I needed. When I look into the record that gets passed, the group field is a zero length string, but all the other columns are populated. I also don't see a row index for the grid, which would let me just retrieve the previous row.

Any help is appreciated - thanks!

https://fiddle.sencha.com/#fiddle/20j

scottmartin
6 Dec 2013, 8:05 AM
What if you use:


row.record.get('4Overtime');


It would help if you could create an example:
https://fiddle.sencha.com/#home

agk23
6 Dec 2013, 8:28 AM
That didn't work. "4Overtime" is the value of "field". I also tried row.record.get('field'), but it didn't work either.

Here is the fiddle https://fiddle.sencha.com/#fiddle/20j

T (https://fiddle.sencha.com/#fiddle/20j)hanks