This is a migrated thread and some comments may be shown as answers.

Wizard with dynamic steps

1 Answer 642 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Rich
Top achievements
Rank 1
Rich asked on 12 Dec 2014, 02:52 PM
I'm attempting to create a wizard with an unknowable number of steps and outcomes.  Steps are being created dynamically in code-behind based on user responses. I'm able to retrieve data from the wizard at completion and render my results correctly.  If a user walks through the wizard in a linear way everything functions, but when users step back through the wizard via the previous button I need to trap this condition to prevent logic from re-running and creating duplicates of steps that already exist.

My question is - is there any absolute way to reference a particular step (i.e. step.ID) so I can check to see what step a user is leaving and what step a user is heading to? CurrentStepIndex is not usable since a user can arrive at a step from many different logical paths.

1 Answer, 1 is accepted

Sort by
0
Accepted
Plamen
Telerik team
answered on 16 Dec 2014, 06:51 AM
Hello,

In such scenarios we recommend setting a different ID in the moment we create the new step and find the step by its ID in the case you need it- for example OnNextButtonClick event.

I am attaching a sample page where similar behavior is implemented similar to this online demo. Please review it and let me know if you have further questions.

Regards,
Plamen
Telerik
Tags
Wizard
Asked by
Rich
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or