Page entry validation - Best practice?

4 posts, 0 answers
  1. Jason Parrish
    Jason Parrish avatar
    87 posts
    Member since:
    Sep 2009

    Posted 07 Feb 2012 Link to this post

    What is the recommended way to handle validation for each page in the Wizard?

    The Validating event for the Wizard itself does not fire for each page change, only when the form is closing.  I could perform validation on SelectedPageChanging, but then I have to branch to multiple routines depending on which page the wizard was on. This method works fine, but ideally, each page itself had its own Validating event.  Or each page had a cancellable "Moving" event with arguments that indicated which way it was going. 

  2. Boryana
    Boryana avatar
    330 posts

    Posted 10 Feb 2012 Link to this post

    Hello Jason,

    Thank you for writing.

    RadWizard allows page validation in its Next or, as you have pointed out, SelectedPageChaning event. You will be able to find a sample snippet in this article.

    This is the first time we receive a suggestion for a validating event of each RadWizard page and we will take it under consideration in future releases. 

    Do not hesitate to contact me back in case you have further questions.

    All the best,
    the Telerik team
    Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
  3. DevCraft R3 2016 release webinar banner
  4. Daniel B.
    Daniel B. avatar
    18 posts
    Member since:
    Apr 2015

    Posted 05 Jul 2015 in reply to Boryana Link to this post

    Hi Boryana,


    I am also curious about this functionality, as i have different wizards, some creating a EF entity in steps, others defining business logic for creating a batch of different entities at once


    Any help with what you would recommend would be highly appreciated, as well as whether any feature to help with this exists already

  5. Dess
    Dess avatar
    1562 posts

    Posted 08 Jul 2015 Link to this post


    Thank you for writing.

    As Boryana had already noted in the previous post, the Next event is appropriate for data validation when navigating through the pages. Thus, you can cancel this event if the data on the current page is not valid. As this event  is cancelable and it is suitable for data validation we have not logged any feature request in our feedback portal

    I hope this information helps. Should you have further questions, I would be glad to help.
    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
Back to Top