View Full Version : Sorting not proper when grouping

31 Aug 2012, 7:06 AM

I have an ExtJS 4.0.7 grid.
I use a store that is populated with json data.
I use a group field just to find out counts of records with some specific type.
I do not want to sort them or visually group them.
But the group field affects sorting.
This is the config i use for store

var gridStore = new Ext.data.Store({
pageSize: 15,
model: 'gridModel',
groupField: 'field1',
groupDir : 'undefined',
sortOnLoad : false,
proxy: {
type: 'ajax',
url: 'myData.json',
reader: {
type: 'json',
root: 'rootU',
successProperty: 'success',
totalProperty : 'totalCount'

Can anyone post a quick reply.

31 Aug 2012, 7:46 AM