test_page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| test_page [2024/02/10 20:31] – [RadVScrollBar – rvsb] admin | test_page [2024/02/10 20:34] (current) – [* RadWizard – rw] admin | ||
|---|---|---|---|
| Line 1322: | Line 1322: | ||
| ==== * RadWizard – rw ==== | ==== * RadWizard – rw ==== | ||
| - | http:// | + | http:// |
| http:// | http:// | ||
| Design Time Settings http:// | Design Time Settings http:// | ||
| Line 1329: | Line 1328: | ||
| Wizard dialog with multiple pages and < | Wizard dialog with multiple pages and < | ||
| - | {{vertopal_daaeffda7d704b80a16bba19fb3588e8/ | + | {{tdn: |
| * Could leave as default assigned name unless we will use more than one Wizard in a project. | * Could leave as default assigned name unless we will use more than one Wizard in a project. | ||
| Line 1366: | Line 1365: | ||
| > [[http:// | > [[http:// | ||
| > | > | ||
| - | > 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 | + | </code> |
| - | > | + | |
| - | > e.Cancel = true; %%//%% If the validation does not pass | + | |
| - | > | + | |
| - | > this.radWizard1.SelectedPage = this.radWizard1.Pages[0]; | + | |
| - | > | + | |
| - | > %%//%% 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.1707615072.txt.gz · Last modified: 2024/02/10 20:31 by admin