Wizard with dynamic steps

2 posts, 1 answers
  1. Rich
    Rich avatar
    3 posts
    Member since:
    Nov 2012

    Posted 12 Dec 2014 Link to this post

    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.
  2. Answer
    Plamen
    Admin
    Plamen avatar
    2733 posts

    Posted 16 Dec 2014 Link to this post

    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
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top