Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Touch Premium Member
    Join Date
    Jun 2008
    Location
    Germany, Dortmund
    Posts
    249
    Vote Rating
    13
    hschaefer123 will become famous soon enough

      0  

    Default [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 versions tested against:
    • browser independent
    Description:
    • 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:

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

  2. #2
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    96
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    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
    });

  3. #3
    Touch Premium Member
    Join Date
    Jun 2008
    Location
    Germany, Dortmund
    Posts
    249
    Vote Rating
    13
    hschaefer123 will become famous soon enough

      0  

    Default


    Hi Condor, you're right.
    Using the minValue solves the problem.
    I will have a look at the api concerning actionMode.
    Thank Holger

  4. #4
    Sencha - Community Support Team Condor's Avatar
    Join Date
    Mar 2007
    Location
    The Netherlands
    Posts
    24,246
    Vote Rating
    96
    Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of Condor has much to be proud of

      0  

    Default


    Quote Originally Posted by hschaefer123 View Post
    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).

  5. #5
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    17,064
    Vote Rating
    659
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    The actionMode changes have been added to the trunk.
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

Thread Participants: 2