Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha User
    Join Date
    Apr 2009
    Posts
    19
    Vote Rating
    0
    bartolomiew is on a distinguished road

      0  

    Default [FNR] SpinnerField doesn't honor setEnabled(false) on triggers

    [FNR] SpinnerField doesn't honor setEnabled(false) on triggers


    Code:
    import com.extjs.gxt.ui.client.widget.form.FormPanel;
    import com.extjs.gxt.ui.client.widget.form.SpinnerField;
    import com.google.gwt.core.client.EntryPoint;
    import com.google.gwt.i18n.client.NumberFormat;
    import com.google.gwt.user.client.ui.RootPanel;
    
    public class TestSpinner implements EntryPoint {
    
    	@Override
    	public void onModuleLoad() {
    		
    		FormPanel formPanel = new FormPanel();
    		
    		SpinnerField spinnerField = new SpinnerField();
    		spinnerField.setFieldLabel("Spinner disabled");
    		spinnerField.setIncrement(Integer.valueOf(1));
    		spinnerField.setPropertyEditorType(Integer.class);
    		spinnerField.setFormat(NumberFormat.getFormat("##0"));
    		spinnerField.setAutoValidate(true);
    		spinnerField.setAllowDecimals(false);
    		spinnerField.setAllowBlank(false);
    		spinnerField.setMinValue(0);
    		spinnerField.setMaxValue(50);
    		spinnerField.setValue(25);
    
    		// you can change spinner value with triggers
    		// even with setEnabled(false);
    		spinnerField.setEnabled(false);
    		
    		formPanel.add(spinnerField);
    		
    		RootPanel.get().add(formPanel);
    
    	}
    	
    	
    }

  2. #2
    Software Architect
    Join Date
    Sep 2007
    Posts
    13,966
    Vote Rating
    130
    sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light sven is a glorious beacon of light

      0  

    Default


    Fixed in SVN as of revision 2229. There was already a patch pending.

  3. #3
    Sencha User
    Join Date
    Apr 2009
    Posts
    19
    Vote Rating
    0
    bartolomiew is on a distinguished road

      0  

    Default


    Thanks, I'm grabbing the revision 2229

Similar Threads

  1. Replies: 3
    Last Post: 10 Jul 2009, 4:08 AM
  2. [FNR] Table.setColumnContextMenu(false) doesn't work
    By bhahn in forum Ext GWT: Bugs (1.x)
    Replies: 1
    Last Post: 4 Jun 2008, 9:27 PM
  3. Replies: 3
    Last Post: 20 Mar 2008, 10:47 PM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar