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

Reset active step

2 Answers 163 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Fit2Page asked on 04 Aug 2016, 07:51 AM

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 Answers, 1 is accepted

Sort by
0
Veselin Tsvetanov
Telerik team
answered on 08 Aug 2016, 02:13 PM
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
0
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
answered on 09 Aug 2016, 07:48 AM

Hi Veselin,

It works thank you

 

Marc

 

Tags
Wizard
Asked by
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Answers by
Veselin Tsvetanov
Telerik team
Fit2Page
Top achievements
Rank 2
Iron
Iron
Iron
Share this question
or