日期:2014-05-16 浏览次数:20420 次
设置combobox的store的query项为remote时,点击 combobox的下拉列表时,会实时发ajax请求去load数据,这时默认会出现loadmask。
?
?
/* remove loadMask for combobox load */ Ext.form.field.ComboBox.prototype.defaultListConfig={ emptyText: '', //loadingText: 'Loading...', //remove this //loadingHeight: 70, //remove this loadMask:false, //add this minWidth: 70, maxHeight: 300, shadow: 'sides' };?
同理, treepanel的store,也可以去掉loadMask:
?
Ext.create('Ext.tree.Panel', { store: treeConfig.store, cls:'x-column-tree', rootVisible: false, viewConfig: { loadMask: false, //remove loadMask plugins: { ptype: 'treeviewdragdrop' } }, autoHeight:true, height:'900', width: 250, title: '', useArrows: true, border:false });?
?
?
?
?
?
?