25 Jul 2011 8:52 AM #1
Ext.grid.Panel sorting the "name" field by default
Edit: see the posts below
If there is a record having a field with a value of "name" as the name property, the grid gets sorted by that field by default. Why is that? And how can it be changed? I could not find anything that suggests this behavior in the documentation.
25 Jul 2011 9:05 AM #2
Sorry, it's actually the "grouper" that is sorting the column by default. Can this behaviour be changed anyway?
25 Jul 2011 9:12 AM #3
From the documentation:
groupField : String
The (optional) field by which to group data in the store. Internally, grouping is very similar to sorting - the groupField and groupDir are injected as the first sorter (see sort). Stores support a single level of grouping, and groups can be fetched via the getGroups method.