Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

How to control navigation in RadWizard

$
0
0
Hi,

I would suggest you to use the SelectionChanging event since you can cancel it based on some condition. In this way you will cancel the navigation  to other page. As for you other question - you can give a name of your WizardPages:
<telerik:RadWizard x:Name="myWizard" SelectionChanging="myWizard_SelectionChanging">
            <telerik:RadWizard.WizardPages>
                <telerik:WizardPage Header="0" x:Name="page0"/>
                <telerik:WizardPage Header="1"  x:Name="page1"/>

Then in the SelectionChanging event you can check the name of the new page (args.NewPage):
private void myWizard_SelectionChanging(object sender, SelectedPageChangingEventArgs e)
    {
        if (e.NewPage.Name == "page1")
        {
            e.Cancel = true;   
        }
    }


I hope this information helps.


Regards,
Yoan
Telerik
 

See What's Next in App Development. Register for TelerikNEXT.

 

Viewing all articles
Browse latest Browse all 94857

Trending Articles