Optional Pages in RadWizard

9 posts, 0 answers
  1. Connor
    Connor avatar
    3 posts
    Member since:
    Jul 2015

    Posted 16 Jul 2015 Link to this post

    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? 
  2. Vera
    Admin
    Vera avatar
    263 posts

    Posted 21 Jul 2015 Link to this post

    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
  3. Connor
    Connor avatar
    3 posts
    Member since:
    Jul 2015

    Posted 21 Jul 2015 in reply to Vera Link to this post

    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. 

  4. Yoan
    Admin
    Yoan avatar
    1120 posts

    Posted 24 Jul 2015 Link to this post

    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
  5. Connor
    Connor avatar
    3 posts
    Member since:
    Jul 2015

    Posted 24 Jul 2015 in reply to Yoan Link to this post

    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. 

  6. Yoan
    Admin
    Yoan avatar
    1120 posts

    Posted 28 Jul 2015 Link to this post

    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
  7. Jon
    Jon avatar
    12 posts
    Member since:
    Sep 2010

    Posted 30 May in reply to Yoan Link to this post

    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!

     

  8. Yoan
    Admin
    Yoan avatar
    1120 posts

    Posted 02 Jun Link to this post

    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.
  9. Jon
    Jon avatar
    12 posts
    Member since:
    Sep 2010

    Posted 02 Jun in reply to Yoan Link to this post

    That worked, thanks!
Back to Top