Hi everyone,
I'm experiencing an issue in SmartGWT 13.1 where calling setValue() on a DynamicForm item does not always update the UI. Here's a simplified example of what I'm doing:
The UI sometimes does not update, even though textItem.getValue() returns "Jane Doe". The issue is intermittent and happens more frequently when the form is inside a VLayout or when values are set dynamically after a delay.
I've tried calling form.redraw(), markForRedraw(), and textItem.fireEvent(new ChangedEvent(textItem.getJsObj())), but the issue persists.
Has anyone else encountered this in SmartGWT 13.1? Any workarounds or fixes would be greatly appreciated!
@Chill Guy Game
I'm experiencing an issue in SmartGWT 13.1 where calling setValue() on a DynamicForm item does not always update the UI. Here's a simplified example of what I'm doing:
Code:
DynamicForm form = new DynamicForm();
TextItem textItem = new TextItem("name", "Name");
form.setFields(textItem);
// Initially set a value
textItem.setValue("John Doe");
// Later update the value
textItem.setValue("Jane Doe");
I've tried calling form.redraw(), markForRedraw(), and textItem.fireEvent(new ChangedEvent(textItem.getJsObj())), but the issue persists.
Has anyone else encountered this in SmartGWT 13.1? Any workarounds or fixes would be greatly appreciated!
@Chill Guy Game
Comment