PDA

View Full Version : Grid grouping is sorting automatically in 4.1



jclark42796
30 Apr 2012, 10:05 AM
I have a grid w/ grouping. In 4.0.7, the groups were not sorted. In 4.1.0, they are being sorted. How do I disable sorting the groups. I tried setting isSortable: false in the store, but that didn't affect the grouping.

Thanks,
Jim


Ext.define('Ext.simponspanel', {
alias: 'widget.simpsonspanel',
extend: 'Ext.grid.Panel',
//store: Ext.data.StoreManager.lookup('simpsonsStore'),
columns: [
{ header: 'Name', dataIndex: 'name', flex: 1},
{ dataIndex: 'title', hidden: true}
],
height: 200,
width: 400,

initComponent: function(config){

this.features = Ext.create('Ext.grid.feature.GroupingSummary', {
groupHeaderTpl: '{name}'
});

this.store = new Ext.data.JsonStore({
fields: [{name: 'name'},{name: 'title'}],
isSortable: false,
groupField: 'title'
});

this.store.add({title: 'math', name: 'D'}, {title: 'english', name: 'C'}, {title: 'english', name: 'B'}, {title: 'all', name: 'A'});
this.callParent();
}
});


Ext.application({
name: 'HelloExt',
launch: function() {
Ext.create('Ext.container.Viewport', {
layout: 'fit',
items: [
{ xtype: 'simpsonspanel'}
]
});
}
});

4.0.7 order is math, english, all
34705

4.1.0 order is all, english, math
34706

scottmartin
30 Apr 2012, 11:17 AM
This is under review: EXTJSIV-6063

Regards,
Scott.

Animal
30 Apr 2012, 12:02 PM
THis has ben fixed now.

If a store is configured with



remoteGroup: true


Then sorting is not performed locally. It is left to the server to do that whenever the store is loaded from the server.

jclark42796
30 Apr 2012, 12:36 PM
Thanks!

Is this something that will be included in an update that will be released soon?

Jim

scottmartin
30 Apr 2012, 1:17 PM
Nightly builds will contain it soon. There is no release date for 4.1.1 at this time.

Scott.

jclark42796
30 Apr 2012, 1:35 PM
Thanks. How do I get access to the nightly builds?

scottmartin
30 Apr 2012, 2:08 PM
This is available to licensed users:
http://www.sencha.com/store/extjs/

If you are a licensed users, you can login to support download builds from there.

Regards,
Scott.

jclark42796
4 May 2012, 6:29 AM
So does the "Ext JS Standard Support" license provide me access to nightly builds?
I didn't see this info on

http://www.sencha.com/store/extjs/ or
http://www.sencha.com/store/licensing-faq

Thanks,
Jim

scottmartin
4 May 2012, 6:51 AM
Yes it does. You will get access to the support portal and there is a link provided for nightly builds.

Scott.