When using the DataGrid with Form template, the save behavior after a create seems troublesome. Is there anyway for us to change the template ourselves? It is an awesome tool and template but it would suck to have to add standardized code changes to every single auto-generated page.
Here is the template's User Experience (UX):
- User clicks Add button
- User completes the form
- User clicks Save button
a. This results in the record not being added to the list on the left. - User desires one of four typical paths:
a. Make a correction on the form and save again. This results in an error message "Cannot save". I suspect this is because the primary key is not updated to the local copy of the record during the initial save.
b. Add a new form. If we did step 5a above first, clicking the Add button doesn't remove the error message.
c. Click another record in the list. If the user fails to click the save button, they are not prompted to save the record first, so the data entry is lost.
d. Leave the page. If the user fails to click the save button, they are not prompted to save the record first, so the data entry is lost.