GroupingStore in gwt-ext
There is a weird twist in using GroupingStore with GridPanel in gwt-ext.
It goes like this…
I set up the store backing the GridPanel,
and set the field used to group the records…
GroupingStore store = new GroupingStore(proxy, reader);
store.setGroupField(”Type”);
store.load();
The codes work fine in GWT hosted mode,
but it turns out giving a blank page in compiled code.
Firebug indicates that there is a javascript error saying
“this.sortInfo has no properties“.
This really screwed me up for a whole day.
the workaround…, as I can come up with for the moment,
is to add the following line:
store.setSortInfo(new SortState(”Type”, SortDir.ASC));
to explicitly provide the sortInfo,
though it’s by default the records are sorted by the grouping field.
Then everything goes just fine.
This is weird, and was not documented in anywhere in the javadoc of gwt-ext.
So I write it up here, please tell me if you’ve got a better workaround.

Thanks, I had this same problem and your method worked.