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

Page entry validation - Best practice?

3 Answers 140 Views
Wizard
This is a migrated thread and some comments may be shown as answers.
Jason Parrish
Top achievements
Rank 1
Jason Parrish asked on 07 Feb 2012, 11:29 PM
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. 

Thoughts?

3 Answers, 1 is accepted

Sort by
0
Boryana
Telerik team
answered on 10 Feb 2012, 06:26 PM
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,
Boryana
the Telerik team
Sharpen your .NET Ninja skills! Attend Q1 webinar week and get a chance to win a license! Book your seat now >>
0
Daniel B.
Top achievements
Rank 1
answered on 06 Jul 2015, 12:12 AM

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

0
Dess | Tech Support Engineer, Principal
Telerik team
answered on 08 Jul 2015, 01:27 PM
Hello,

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.
 
Regards,
Dess
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
Tags
Wizard
Asked by
Jason Parrish
Top achievements
Rank 1
Answers by
Boryana
Telerik team
Daniel B.
Top achievements
Rank 1
Dess | Tech Support Engineer, Principal
Telerik team
Share this question
or