if (propertyIsReadOnly) {
memberValuesGrid.setCanEdit(false);
} else {
// put a cancel button in the footer strip to allow the user to exit without saving changes
final IButton cancelButton = new EnhancedIButton(MSG.common_button_cancel());
cancelButton.focus();
cancelButton.addClickHandler(new com.smartgwt.client.widgets.events.ClickHandler() {
public void onClick(ClickEvent clickEvent) {
popup.destroy();
}
});