PDA

View Full Version : Sorting not proper when grouping



harman
31 Aug 2012, 7:06 AM
Hi,

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.

Zdeno
31 Aug 2012, 7:46 AM
http://www.sencha.com/forum/showthread.php?235935-Disable-default-sort-on-group-store&p=868435&viewfull=1#post868435