PDA

View Full Version : Store reload problem



douggiefox
3 Feb 2010, 3:17 AM
Hi

I'm trying to reload a grid's store when the value of a textfield is changed. I'm trying this:



'change': function( field, newValue, oldValue ) {
var ds = memberQuotationGrid.store;
ds.reload({params: Ext.apply({commission:newValue}, ds.lastOptions.params)});
},


If I check the POST in firebug, the value of commission never changes - even if I hard code a value in.

Any ideas?

Best

DF

fay
3 Feb 2010, 5:17 AM
You have the parameters to Ext.apply the wrong way around. See: http://www.extjs.com/forum/showthread.php?p=400638#post400638

douggiefox
3 Feb 2010, 6:35 AM
Thanks.

DF