-
15 Sep 2010 6:24 AM #1
[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); } }
-
15 Sep 2010 6:33 AM #2
Fixed in SVN as of revision 2229. There was already a patch pending.
-
15 Sep 2010 6:36 AM #3
Thank you for reporting this bug. We will make it our priority to review this report.
Similar Threads
-
[FNR] [1.2.3] Cell editor triggers do not fire in IE7 if browser scrolled
By ts4jda in forum Ext GWT: Bugs (1.x)Replies: 3Last Post: 10 Jul 2009, 4:08 AM -
[FNR] Table.setColumnContextMenu(false) doesn't work
By bhahn in forum Ext GWT: Bugs (1.x)Replies: 1Last Post: 4 Jun 2008, 9:27 PM -
[2.0.1][FIXED] ComboBox, allowBlank: false, msgTarget: 'side' triggers an exception
By rslinckx in forum Ext 2.x: BugsReplies: 3Last Post: 20 Mar 2008, 10:47 PM


Reply With Quote