PDA

View Full Version : list grouper - mixed logic and view?



gkatz
27 Feb 2013, 3:08 AM
Hi all;
I need to control the group 'title' that is displayed in a grouped list.
from what I can see the title is determined by the grouper function. I cannot figure out if there is a way to separate the grouping logic from the grouping title display logic.
for instance, I want to group by the Latin alphabet of a first name, but want the display title to be something else that the letters.
is this built in to sencha and I missed it?
thanks,.

mitchellsimoens
1 Mar 2013, 7:37 AM
The text to display in the group header comes from the getGroupString method on the store. This is not easily overridden as in the List the doUpdateListItem method is quite long.

gkatz
2 Mar 2013, 10:23 AM
well i think there should be a separation in the grouper config between the group logic and the group string to display. maybe something to think about for 2.2?
thanks