Prevent wizard from closing if something wrong from server
Closed this issue · 6 comments
Click on Finish button of Wizard, we call server to save data. If server returns user error, how do we prevent Wizard from closing, and move back to a specified page to let user edit? Thanks!
You should create a separate page where you submit the data. If it fails, you can navigate back to the selected page.
I add a custom class that extends from WizardBase and overwrite SaveAsync method that would be called when user clicks on Finish button. From this SaveAsync method, I try to navigate to the selected page if server returns failed but no luck.
Would you like to provide some example lines of code. Thanks!
Do you mean to define a custom class that extends from SummaryWizardPage ? Thanks!
Yes, I would indeed create a separate page at the end (after the SummaryWizardPage).
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.