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

Optional Pages in RadWizard

8 Answers 107 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Connor
Top achievements
Rank 1
Connor asked on 16 Jul 2015, 09:32 PM
Is there a way to make wizard pages in the RadWizard not display and skip immediately to the next? right now I'm binding a bool that determines if the page should be skipped to the pages IsEnabled property and the checking the pages IsEnabled property in the SelectionChanged event if it indicates a skip i increment or decrement the selected page index based on the direction of the change, The problem seems to be that the property bindings for the page are not populated until the page is loaded for the first time. Is there way to get the behavior i'm looking for? 

8 Answers, 1 is accepted

Sort by
0
Vera
Telerik team
answered on 21 Jul 2015, 07:39 AM
Hi Connor,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Connor
Top achievements
Rank 1
answered on 21 Jul 2015, 12:36 PM

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. 

0
Yoan
Telerik team
answered on 24 Jul 2015, 12:36 PM
Hello Connor,

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Connor
Top achievements
Rank 1
answered on 24 Jul 2015, 12:42 PM

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. 

0
Yoan
Telerik team
answered on 28 Jul 2015, 01:41 PM
Hello Connor, 

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
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Jon
Top achievements
Rank 1
answered on 30 May 2017, 10:53 AM

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!

 

0
Yoan
Telerik team
answered on 02 Jun 2017, 08:51 AM
Hi,

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
Try our brand new, jQuery-free Angular 2 components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
0
Jon
Top achievements
Rank 1
answered on 02 Jun 2017, 11:12 AM
That worked, thanks!
Tags
Wizard
Asked by
Connor
Top achievements
Rank 1
Answers by
Vera
Telerik team
Connor
Top achievements
Rank 1
Yoan
Telerik team
Jon
Top achievements
Rank 1
Share this question
or