User Tools

Site Tools


test_page

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
test_page [2024/02/10 20:31] – [* RadWizard – rw] admintest_page [2024/02/10 20:34] (current) – [* RadWizard – rw] admin
Line 1322: Line 1322:
 ==== * RadWizard – rw  ==== ==== * RadWizard – rw  ====
  
-http://www.telerik.com/help/winforms/wizard-overview.html +http://www.telerik.com/help/winforms/wizard-overview.html\\
 http://www.telerik.com/community/forums/winforms/wizard.aspx\\ http://www.telerik.com/community/forums/winforms/wizard.aspx\\
 Design Time Settings http://www.telerik.com/help/winforms/wizard-design-time.html Design Time Settings http://www.telerik.com/help/winforms/wizard-design-time.html
Line 1366: Line 1365:
 > [[http://www.telerik.com/forums/how-to-add-custom-functionality-to-next-button-in-a-wizard|Add custom/Validation functionality to Wizard Next Button]] > [[http://www.telerik.com/forums/how-to-add-custom-functionality-to-next-button-in-a-wizard|Add custom/Validation functionality to Wizard Next Button]]
  
-Subscribe to the Next event +Subscribe to the Next event 
->  +this.radWizard1.Next += new WizardCancelEventHandler(radWizard1_Next);  
-this.radWizard1.Next += new WizardCancelEventHandler(radWizard1_Next); +Handle the Next event 
->  +<code csharp
-Handle the Next event +private void radWizard1_Next(object sender, WizardCancelEventArgs e) 
->  +
-private void radWizard1_Next(object sender, WizardCancelEventArgs e) +   if (this.radWizard1.SelectedPage == this.radWizard1.Pages[1]) %%//%% Check if this is the desired page  
->  +   
-+     // Do some validation here 
->  +     e.Cancel = true; %%//%% If the validation does not pass 
-if (this.radWizard1.SelectedPage == this.radWizard1.Pages[1]) %%//%% Check if this is the desired page +     this.radWizard1.SelectedPage = this.radWizard1.Pages[0]; %%//%% Could return to 1<sup>st</sup> page 
->  +     // Or you could show some message to the user 
-+   } 
->  +
-> %%//%% Do some validation here +</code>
->  +
-e.Cancel = true; %%//%% If the validation does not pass +
->  +
-this.radWizard1.SelectedPage = this.radWizard1.Pages[0]; %%//%% Could return to 1<sup>st</sup> page +
->  +
-> %%//%% Or you could show some message to the user +
- +
-+
- +
-> } +
   * Previous - Fires when the Back command button is clicked. It is cancelable event.   * Previous - Fires when the Back command button is clicked. It is cancelable event.
   * SelectedPageChanging - Fires before the selected page of RadWizard is changed. It is cancelable event. The arguments of the event provide the selected page of the control and the page to be selected.   * SelectedPageChanging - Fires before the selected page of RadWizard is changed. It is cancelable event. The arguments of the event provide the selected page of the control and the page to be selected.
test_page.1707615095.txt.gz · Last modified: 2024/02/10 20:31 by admin

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki