-
10 Jul 2009 12:25 AM #1
[TENT][3.0.0] Ext.ux.form.SpinnerField
[TENT][3.0.0] Ext.ux.form.SpinnerField
Bug concerning the bundled Spinner Extension "Ext.ux.form.SpinnerField" in the EXT JS 3.0.0 examples.
Ext version tested:- Ext 3.0.0
- browser independent
- 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.
Code://inside used column model... editor: new Ext.ux.form.SpinnerField({ allowBlank:false ,allowNegative:false ,allowDezimals:false ,maxValue:1000 })
-
10 Jul 2009 1:55 AM #2Sencha - Community Support Team
- Join Date
- Mar 2007
- Location
- The Netherlands
- Posts
- 24,251
- Vote Rating
- 43
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):
Code:Ext.override(Ext.ux.form.SpinnerField, { actionMode: 'wrap', onShow: Ext.ux.form.SpinnerField.superclass.onShow, onHide: Ext.ux.form.SpinnerField.superclass.onHide });
-
10 Jul 2009 2:08 AM #3
Hi Condor, you're right.
Using the minValue solves the problem.
I will have a look at the api concerning actionMode.
Thank Holger
-
10 Jul 2009 2:11 AM #4
-
11 Jul 2009 8:54 PM #5
The actionMode changes have been added to the trunk.
Evan Trimboli
Sencha Developer
Twitter - @evantrimboli
Don't be afraid of the source code!
Thank you for reporting this bug. We will make it our priority to review this report.


Reply With Quote