I am dealing with a property grid. I want to prevent the automatic sorting of column names for a property grid. here is my code. The bold highlighted code is my source of the property grid, and its order is similar to what I want to see. But Ext is an automatic sorting of column orders alphabetically. How can I prevent this?
Thanks for any suggestion.
Ext.ns ('Application.propertygrid'); Application.propertygrid.FileDetail = Ext.extend (Ext.grid.PropertyGrid, {title: 'File Detail', height: 200, border: false, stripeRows: true, flex: 1, initComponent: function () {Application.propertygrid. FileDetail.superclass.initComponent.apply (this, arguments);}, source: {Name: 'Please select a file', Type: 'Please select a file', Size: 'Please select a file', Path: 'Please select a file ', FullPath:' Please select a file ', Width:' Please select a file ', Height:' Please select a file '}, listeners: {beforeedit: function () {return false; // prevent editing}, headerclick: function () {return false; // prevent column sorting on click}}}) Ext.reg ('filedetail', Application.propertygrid.FileDetail);
Fatih source share