Check out the examples. You return a string and it's grouped off that.
Thanks, I've already seen the examples. They doesn't help me. Because they are too simple.
My store has 3 fields: group, question, score.
I want to group the list items by the "group" field. But the content of this "group" field should'n be displayed. I want to display a string that depends on the content of the group field. In my code above it is delieverd by the getGroupTitle() function.
And I want to display a total score of the score field of all items in the same group. This score is calculated by a funtion and is different in every group. In my code above it is the getGroupScore() function.
It should look like this:
MyGroupText1: total section score: 5
....items (Question, score).... MyGroupText2: total section score: 7
....items (Question, score).... MyGroupText3: total section score: 4
....items (Question, score)....