When I set autoSaveEdtis on a ListGrid to true, new records get after auto-save the value of generated ("sequence") IDs back from the server. When however I set autoSaveEdits to false and save new records with saveAllEdits() from a ClickHandler, IDs to not propagate back to the client even though they are generated correctly and read back on the server. Am I missing something? My click handlers look like this:
Code:
IButton saveButton = new IButton("Save"); saveButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { if (targetGrid.hasChanges()) { SC.ask("Save Changes?", new BooleanCallback() { public void execute(Boolean value) { if (value != null && value) { targetGrid.saveAllEdits(); } } }); } else { SC.warn("No Changes!"); } } });
Comment