Reset active step

3 posts, 0 answers
  1. Fit2Page
    Fit2Page avatar
    351 posts
    Member since:
    Feb 2007

    Posted 04 Aug 2016 Link to this post

    When re-creating a dynamic wizard in user control The active step is not reset to 0 with:

    rw.WizardSteps.Clear()

    How can I achieve a reset of the active step?

    Marc

  2. Veselin Tsvetanov
    Admin
    Veselin Tsvetanov avatar
    328 posts

    Posted 08 Aug 2016 Link to this post

    Hello Marc,

    You will have to manually set the active step index to 0, when you clear and then recreate the steps in a RadWizard:
    rw.WizardSteps.Clear();
     
    for (int i = 0; i < 3; i++)
    {
        RadWizardStep wizStep = new RadWizardStep();
        wizStep.ID = "step_" + i;
        rw.WizardSteps.Add(wizStep);
    }
     
    rw.WizardSteps[0].Active = true;

    Regards,
    Veselin Tsvetanov
    Telerik by Progress
  3. Fit2Page
    Fit2Page avatar
    351 posts
    Member since:
    Feb 2007

    Posted 09 Aug 2016 in reply to Veselin Tsvetanov Link to this post

    Hi Veselin,

    It works thank you

     

    Marc

     

Back to Top