我處理的屬性網格。我想防止自動排序屬性網格的列名稱。 這是我的代碼。大膽突出顯示的代碼是屬性網格的源代碼,它的順序就像我想看到的一樣。但Ext按字母順序自動排列列順序。我怎樣才能防止這一點。禁用自動分揀物業電網ExtJS的
感謝您的任何建議。
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);
用戶可能仍然想對列進行排序,但只想禁用在渲染時完成的自動排序。 – goodies4uall 2013-09-17 15:33:40