PDA

View Full Version : [OPEN-588] PropertyGrid not really sorting



mitchellsimoens
17 Feb 2010, 7:00 AM
Ext version tested:
Ext-3.1.1


Adapter used:
ext


Browser versions tested against:
FF3.6 (Firebug 1.5.0)


Operating System:
Windows 7 64-bit


Description:
By default, the sorting is on the name column but when you have the PropertyNames config set, the sorting doesn't take into account the display names you have set.


Test Case:

var propsGrid = new Ext.grid.PropertyGrid({
anchor: "100%",
autoHeight: true,
trackMouseOver: true,
propertyNames: {
name: "Name",
email: "Email",
created: "Created"
},
viewConfig : {
forceFit: true,
scrollOffset: 2
}
});


Steps to reproduce the problem:
After render, try to resort the name column.


The result that was expected:
I thought the names would appear in alphabetical order.


The result that occurs instead:
It seems it still sorts off the name value of the store and not what is being displayed.


Debugging already done:
none