PDA

View Full Version : Problem with SpinnerField



FrankBerger
1 Oct 2009, 12:46 AM
I am using the SpinnerField on a number and everything works fine with one exception: None of the events fires. I just don't succeed in getting any change out of the field.

What am I doing wrong in this code:


var spinnerNum1 = new Ext.ux.SpinnerField({
name: 'spinnerNum1',
id: 'spinnerNum1',
scale: 'medium',
allowDecimals: false,
minValue: 1,
maxValue: 50,
incrementValue: 1,
alternateIncrementValue: 10,
accelerate: false,
autoWidth: false,
labelWidth: 30,
height: 36,
width: 72,
x: 0,
y: 150,
strategy: new Ext.ux.Spinner.NumberStrategy({minValue:'1', maxValue:'50'}),
listeners: {change: spinnerValue}
//These don't work either:
// listeners: {change: function (){spinnerValue();},
// blur: spinnerValue;}}
});It all works fine, even setting the initial value. I just don't manage to get any values out of the spinner's actions.

Please give me a hint. Thank you very much.

dblak90
5 Nov 2009, 1:49 PM
I think that this post (http://www.extjs.com/forum/showthread.php?p=359008#post359008) is what your looking for...it worked for me.