Hybrid View
-
13 Mar 2013 8:29 AM #1
grouping grid with the first char
grouping grid with the first char
I use ExtJs 4.1.3 and Architect.
I've got a grid with the fields: name and surname.
I need to group the surname by the first char, for example:
A:
ANDERSON GINA
ANDERSON PAOLA
B:
BAT MAN
BAT MOBILE
...
I set the groupField= surname[0] but It doesn't work...
Any solution?
Thanks.
-
13 Mar 2013 9:00 AM #2
You can override the "getGroupString" method on your grouper to return the first character of that field.
Aaron Conran
@aconran
Sencha Architect Development Team
-
14 Mar 2013 12:48 AM #3
It works with ExtJ s4.1.3 but withExtJs 4.2 no!
-
14 Mar 2013 8:03 AM #4
Interesting; sounds like a Ext JS 4.2 bug. Could you provide a simple example for me to pass along to the Ext JS team?
Aaron Conran
@aconran
Sencha Architect Development Team
-
14 Mar 2013 8:26 AM #5
see the test||
see the test||
this is my attachment.
Thanks.
-
18 Mar 2013 9:26 AM #6
-
18 Mar 2013 12:16 PM #7
The store needs to be configured with
Code:groupers: { property: "nome", getGroupString: function(record) { debugger; return record.get('nome')[0]; } },Search the forum: http://www.google.com/coop/cse?cx=01...%3Az7of1ufqccu
Read the docs too: http://extjs.com/deploy/dev/docs/
Scope: http://extjs.com/forum/showthread.ph...642#post257642
-
21 Mar 2013 8:23 AM #8
Did you read my next post about the override?
-
21 Mar 2013 8:35 AM #9
The override needs to run before the beforerender.
Link it as a static file resource, click + at the top of the inspector -> Resource -> JS Resource. This is where the override belongs.Aaron Conran
@aconran
Sencha Architect Development Team
-
18 Mar 2013 1:29 PM #10
Thanks for the report! I have opened a bug in our bug tracker.
Success! Looks like we've fixed this one. According to our records the fix was applied for
EXTJSIV-9184
in
4.2.1.


Reply With Quote