8 Answers, 1 is accepted
Indeed, using SelectedPageIndex property is the recommended approach for skipping pages. You can take a look at Navigation Buttons Events section of Wizard Events help article for a reference.
Regards,
Vera
Telerik
Hi Vera,
Thanks for the reply, what I was really trying to ask is what is the recommended way of dynamically indicating to skip a page? as I said in the original post I've been trying to use IsEnabled, but if the wizard page hasn't already loaded before the bindings on the wizard pages properties are not set correctly.
I am afraid the IsEnabled property will not work in this case. As my colleague Vera said, the recommended approach for skipping pages in RadWizard is to use the SelectedPageIndex property.
Regards,
Yoan
Telerik
Hi Yoan,
I am using selectedpageindex to actually skip the pages. I am asking if there is a recommended approach to a bindable flag on the page that indicates to skip it.
Currently, there is no easy way to achieve this. However, we will consider adding a property of WizardPage which will indicate whether a page will be skipped by the default page sequencing.
Regards,
Yoan
Telerik
Hi,
bumping an old thread, because I tried SelectedPageIndex without success.
I want to skip a page based on some criteria. So in SelectionChanging (if that criteria is met), I do
radWizard.SelectedPageIndex++;
e.Cancel = true;
but the page after the skipped is not displayed. I still see the original page.
I do get to SelectionChanged for the page after the skipped, it's just that it is not shown.
(I added PageLoaded, and I get there for the original page.)
So I would appreciate to know how to cancel a navigation and go to another page.
Thanks!
You can use Wizard's Navigation buttons events (Next, Previous ....) instead of SelectionChanging event. For example, you can use the Next event which will be raised once the Next button is clicked and modify the SelectedPageIndex argument like so:
private void myWizard_Next(object sender, NavigationButtonsEventArgs e)
{
if (e.SelectedPageIndex == 1)
{
e.SelectedPageIndex = 3;
}
}
I hope this helps.
Regards,
Yoan
Progress Telerik