PDA

View Full Version : [FIXED][3.0.0] Ext.ux.form.SpinnerField



hschaefer123
10 Jul 2009, 12:25 AM
Bug concerning the bundled Spinner Extension "Ext.ux.form.SpinnerField" in the EXT JS 3.0.0 examples.

Ext version tested:
Ext 3.0.0Browser versions tested against:
browser independentDescription:
using the spinner inside normale panels is working, but using the spinner inside an EditorGridPanel as editor, the properties does not work. In the Testcase i use 'allowNegative:false' but i can decrement to negative values. None of the properties is working inside EditGridPanel. The Spinner outside the grid behaves as expected with the same properties.Test Case:



//inside used column model...
editor: new Ext.ux.form.SpinnerField({
allowBlank:false
,allowNegative:false
,allowDezimals:false
,maxValue:1000
})

Condor
10 Jul 2009, 1:55 AM
This has nothing to do with using the SpinnerField as an editor.

allowNegative only affects if the user can enter a negative sign using the keyboard.
If you don't want to allow negative values you should set minValue to 0.

ps. SpinnerField also needs the actionMode fix (see TriggerField):

Ext.override(Ext.ux.form.SpinnerField, {
actionMode: 'wrap',
onShow: Ext.ux.form.SpinnerField.superclass.onShow,
onHide: Ext.ux.form.SpinnerField.superclass.onHide
});

hschaefer123
10 Jul 2009, 2:08 AM
Hi Condor, you're right.
Using the minValue solves the problem.
I will have a look at the api concerning actionMode.
Thank Holger

Condor
10 Jul 2009, 2:11 AM
I will have a look at the api concerning actionMode.

actionMode is not something you would use in a regular Ext application.

My comment about actionMode was meant for the development team (which made the same change in TriggerField).

evant
11 Jul 2009, 8:54 PM
The actionMode changes have been added to the trunk.