Hi, i want to set column width at runtime for a fieldgroup, because always shows in a different width against others field, like picture below:
As you see some fields are created at design time. Others in editor “init” method, like this:
@Inject
private FieldGroup fieldGroup;
@Inject
private ComponentsFactory componentsFactory;
@Override
public void init(Map<String, Object> params) {
FieldGroup.FieldConfig fieldConfig = fieldGroup.createField("prueba");
TextField textField = componentsFactory.createComponent(TextField.class);
fieldConfig.setCaption("prueba");
fieldConfig.setComponent(textField);
//fieldConfig.setWidth("250px");
fieldGroup.addField(fieldConfig, 0, 0);
}