Hello,
I would like to ask two questions about the RadWizard control.
1. How can I edit wizard pages in the designer in a normal way? I found out that the only way is to open "Edit Pages" from the SmartTag, select a page there, and not click OK. If I click OK, the designer always switches back to the first (welcome) page. This does not feel very intuitive.
2. How can I set name of pages? In the designer I don't see any option to set the page name (Name property or field name). In the background I see that it creates wizardPage1, wizardPage2, etc., and I can rename them manually, but I don't see any option for this in the designer. Is it available somewhere?
I need this for step validation. Right now I have something like this, and the documentation also shows it this way:
private void radWizard1_Next(object sender, WizardCancelEventArgs e)
{
//if (radWizard1.SelectedPage == radWizard1.Pages[1])
//{
// if (!ValidateStep1())
// e.Cancel = true;
//}
if (radWizard1.SelectedPage == radWizard1.Pages[2])
{
if (!ValidateStep2())
e.Cancel = true;
}
if (radWizard1.SelectedPage == wizardPage1x)
{
if (!ValidateStep1())
e.Cancel = true;
}
}But using fixed page indexes does not seem right to me. It would be better to set names for the pages, and then use something like radWizard1.SelectedPage == wizardPage1x or radWizard1.SelectedPage.Name == "xxx". I have attached a test project. Thanks.
