You found a bug! We've classified it as
EXTJS-16411
.
We encourage you to continue the discussion and to find an acceptable workaround while we work on a permanent fix.
-
Sencha Premium Member
Grid grouper with sort property and grid sort combined bug
Hi
In a grouped grid, where the grouping feature has a sortProperty set (which is different from the grouper property), and the grid itself has another sort property set, multiple "same" groups will be shown:
gridgroupsortbug.png
Fiddle:
https://fiddle.sencha.com/#fiddle/g4a
Code:
Ext.application({
name : 'Fiddle',
launch : function() {
var store = Ext.create('Ext.data.Store', {
storeId:'employeeStore',
fields:['name', 'seniority', 'department', 'groupsort'],
grouper: {
property: 'department',
sortProperty: 'groupsort'
},
sorters: [{
property: 'name'
}],
data: {'employees':[
{ "name": "Michael Scotts", "seniority": 7, "department": "Management", "groupsort" : "a" },
{ "name": "Dwight Schrute", "seniority": 2, "department": "Sales", "groupsort" : "a" },
{ "name": "Jim Halpert", "seniority": 3, "department": "Sales", "groupsort" : "a" },
{ "name": "Kevin Malone", "seniority": 4, "department": "Accounting", "groupsort" : "a" },
{ "name": "Angela Martin", "seniority": 5, "department": "Accounting", "groupsort" : "a" }
]},
proxy: {
type: 'memory',
reader: {
type: 'json',
rootProperty: 'employees'
}
}
});
Ext.create('Ext.grid.Panel', {
title: 'Employees',
store: Ext.data.StoreManager.lookup('employeeStore'),
columns: [
{ text: 'Name', dataIndex: 'name' },
{ text: 'Seniority', dataIndex: 'seniority' }
],
features: [{
ftype: 'grouping'
}],
renderTo: Ext.getBody()
});
}
});
I would expect to get the distinct groups, those sorted by the grouper.sortProperty, and then in these the items sorted by the sorter.property..
-
Thanks for the report! I have opened a bug in our bug tracker.
-
Sencha Premium Member
Hi
Any news on that bug?
How will we get the fix - will you post it in this thread?
Thanks
-
Sencha User
Has this bug been fixed in newer versions and where can I track it ?
-
Sencha User
Hello all, this bug still exists in 6.5. It's been more than 4 years and no fix for this bug yet?
Has anyone found a workaround to this issue?
Thank you!