Dynamic Pages

4 posts, 0 answers
  1. TheGramix
    TheGramix avatar
    16 posts
    Member since:
    Oct 2007

    Posted 13 Mar 2015 Link to this post

    Hello everybody,
    is it possible to define dynamic pages on the RadWizard Control or create the pages based on a List/Observable collection?

    I would like, based on a property, to create or skip the WizardPages...

    Many thanks for the answer
    Dino
  2. Stefan X1
    Admin
    Stefan X1 avatar
    521 posts

    Posted 18 Mar 2015 Link to this post

    Hello Dino,

    You can create and add wizard pages runtime by using RadWizard.WizardPages collection. Please note, that this collection does not have a setter.

    As for your question about the skipping functionality, you can subscribe to the Previous and Next events of RadWizard and set the SelectedPageIndex property within the event handlers. You can check the Events documentation article for further reference.

    I am also attaching a sample project for your convenience.

    Let me know how this works for you.

    Best Regards,
    Stefan
    Telerik
     

    Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.

     
  3. UI for WPF is Visual Studio 2017 Ready
  4. TheGramix
    TheGramix avatar
    16 posts
    Member since:
    Oct 2007

    Posted 07 Apr 2015 in reply to Stefan X1 Link to this post

    Hello Stefan,

    many thanks for your example but it is not what I need.

    I would like to have everything in my view model. I am going to define some behavior to do it.

     

    BR,

    Dino

  5. Stefan X1
    Admin
    Stefan X1 avatar
    521 posts

    Posted 09 Apr 2015 Link to this post

    Hello Dino,

    For a MVVM approach I can suggest you using Commands. You can check the How to use Commands in WPF article for more general information on that matter.

    Actually, RadWizard provides a set of built-in Commands which you can use. Please check the Commands documentation article for further reference.

    Hope this helps.

    Best Regards,
    Stefan
    Telerik
     

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

     
Back to Top