The showPendingEdits(true) seems to have a bug with chrome.
Please a look at this screencast:

First, I have "abc". Then, I edit it to "abcdef". Everything correct until now. Then I save. After saving, if I edit the value again to "abc", the pending style disappears.
In firefox it seems to work correctly.
Here my code:
Using smartgwt 6.1p 04.06.18 power and Chrome Version 66.0.3359.181
Edit: Using Chrome Version 67.0.3396.62 (Offizieller Build) (64-Bit) it is the same behavior.
Please a look at this screencast:
First, I have "abc". Then, I edit it to "abcdef". Everything correct until now. Then I save. After saving, if I edit the value again to "abc", the pending style disappears.
In firefox it seems to work correctly.
Here my code:
Code:
public void onModuleLoad() {
final VLayout vlayout = new VLayout();
DynamicForm df = new DynamicForm();
ValuesManager vm = new ValuesManager();
TextItem vorname = new TextItem("f_vorname", "First name");
vorname.setShowPending(true);
df.setFields(vorname);
IButton saveButton = new IButton("Save");
saveButton.addClickHandler(event -> vm.saveData());
vm.setDataSource(DataSource.get("schueler"));
df.setValuesManager(vm);
Criteria c = new Criteria();
c.addCriteria("f_schueler_id", 10788);
vm.fetchData(c);
vlayout.addMembers(df, saveButton);
vlayout.setWidth100();
vlayout.setHeight100();
vlayout.draw();
}
Edit: Using Chrome Version 67.0.3396.62 (Offizieller Build) (64-Bit) it is the same behavior.
Comment