I'm trying to update a cell with a SpinnerItem editor type but setValue does not do anything.
I have the following test code:
SmartGWT Power 2013-10-05, Firefox 7
I have the following test code:
Code:
GWT.create(BeanFactory.FormItemMetaFactory.class); ListGridField field1 = new ListGridField("field1"); field1.setEditorType(SpinnerItem.class); field1.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { event.getForm().getItem("field2").setValue(2)); } }); ListGridField field2 = new ListGridField("field2"); field2.setEditorType(SpinnerItem.class); field2.addChangedHandler(new ChangedHandler() { public void onChanged(ChangedEvent event) { event.getForm().getItem("field1").setValue(1)); } }); final ListGrid grid = new ListGrid(); grid.setSize("400", "400"); grid.setFields(field1, field2); grid.setCanEdit(true); IButton b = new IButton("Add"); b.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { grid.startEditingNew(); } }); VLayout layout = new VLayout(); layout.setMembers(grid, b); layout.draw();
Comment