-
13 Sep 2011 5:55 AM #1
Combobox remote, remove loading text
Combobox remote, remove loading text
Hi guy,
how can i remove "loading.." text when i type a letter into remote ComboBox??
in extjs 3.3.1 i've used
but now i see that not work!Code:Ext.override(Ext.form.ComboBox, { onBeforeLoad: function() {this.selectedIndex = -1;} });
how can i do?
thanks!
-
13 Sep 2011 8:05 AM #2
load Mask
load Mask
I believe you can get the component loader and set the loadMask to false.
http://docs.sencha.com/ext-js/4-0/#!...r-cfg-loadMaskValterBorges@harmonydata.com
- harmony-data-systems
Harmony Data Systems - Offering Enterprise Application Architecture and Implementation Services
(.NET, SQL, DB2, WEB 2.0, EXT)
-
13 Sep 2011 8:11 AM #3
hi try
but alwais show "Loading..."Code:loadMask:false
-
13 Sep 2011 11:49 AM #4Sencha - Community Support Team
- Join Date
- Jan 2009
- Location
- Palo Alto, California
- Posts
- 1,941
- Vote Rating
- 6
Hmm can you paste your full Combo code? Also what version of the framework are you using (4.0.2a, 4.0.6?)
Ext JS Senior Software Architect
Personal Blog: http://edspencer.net
Twitter: http://twitter.com/edspencer
Github: http://github.com/edspencer
-
13 Sep 2011 12:58 PM #5
The doc for the combobox config shows a loader property but no loadMask.
I would try giving it a proper loader object definition.ValterBorges@harmonydata.com
- harmony-data-systems
Harmony Data Systems - Offering Enterprise Application Architecture and Implementation Services
(.NET, SQL, DB2, WEB 2.0, EXT)
-
14 Sep 2011 1:35 AM #6
this is my code:
(i'm using 4.0.2a)
thanks for your helps!Code:var strCmbDipendente = Ext.create('Ext.data.Store', { storeId: 'strCmbDipendente', fields: ['id','name'], proxy: { type: 'ajax', url: '/Project/public/perdatidip/cmbdipendente', reader: { root: 'rootCmbDipendente' } } }); var cmbDipendente = Ext.create('Ext.form.ComboBox', { x: 30, y: 70, width: 230, id: 'cmbDipendente', fieldLabel: 'Dipendente', labelAlign: 'top', selectOnFocus: true, allowBlank: false, emptyText: 'Selezione....', queryMode: 'remote', displayField: 'name', valueField: 'id', editable: true, triggerAction: 'all', minChars: 1, hideTrigger: true, loadMask: false, store: strCmbDipendente });
-
14 Sep 2011 6:26 AM #7
null
null
what happens if you set
loadMask:nullValterBorges@harmonydata.com
- harmony-data-systems
Harmony Data Systems - Offering Enterprise Application Architecture and Implementation Services
(.NET, SQL, DB2, WEB 2.0, EXT)
-
14 Sep 2011 11:28 PM #8
i try with loadMask : null or loadMask : false
but i always see "loading..." text
sorry but where have i to set this property? becouse i'm reading documentation and in Combobox ther isn't loadMask property!
-
16 Sep 2011 7:03 PM #9
workaround
workaround
One workaround I can think of is to load the store first and then set querymode:'local', and autoload:false.
ValterBorges@harmonydata.com
- harmony-data-systems
Harmony Data Systems - Offering Enterprise Application Architecture and Implementation Services
(.NET, SQL, DB2, WEB 2.0, EXT)
-
18 Sep 2011 11:48 PM #10
i've a lots of records in database, and i need to query romete! i think that it's wrong load too much data.. so in this way i load only records taht i need!


Reply With Quote