PDA

View Full Version : [FIXED] Remote store load twice



eplur
28 Mar 2011, 4:52 PM
in a linked comboBox when the parent combo is selected, the data is requested twice.


var countryCombo = new Ext.form.ComboBox({
fieldLabel: 'Select a country',
renderTo: 'countryCombo',
displayField: 'name',
valueField: 'id',
width: 500,
labelWidth: 130,
store: countryStore,
queryMode: 'remote',
typeAhead: false,
editable: false,
name: 'countryCmb',
listeners: {
'select': function(combo, value){
cityStore.getProxy().extraParams = {countryId: combo.getValue()};
cityStore.load();
}
}
});


When country is selected for the first time, there is only once request to load cityStore. After that each country selection makes http request twice, first with countryId='', and second time with the actual value, ie. countryId=countryCombo.getValue()

Jamie Avins
28 Mar 2011, 7:44 PM
This has been fixed and will be in the next version.

eplur
29 Mar 2011, 4:44 AM
Thank you, and is there a way to search for reported bugs?

Jamie Avins
29 Mar 2011, 8:30 AM
Just through the forum currently, we're working on making the process easier in the future.

steffenk
29 Mar 2011, 8:38 AM
a real bugtracker would help a lot - using credentials from forum.

eplur
29 Mar 2011, 10:58 AM
Thank you for your quick response Jamie.

ranjansingh
30 Aug 2011, 3:41 AM
May i know please the implementation of full code (Country and State with Store). Need help