Edit this page

Events

Selection events:

  • SelectionChanging - Occurs when the selected page is changing. The SelectedPageChangingEventArgs class exposes the following specific properties:

    • Cancel - a boolean property that enables the cancellation of the selection.
    • Direction – a property, which gets the direction in which the user is navigating to. There are two possible directions specifying in which direction a user navigates between pages “Forward” and “Backward”.
    • OldPage - a WizardPage property, which gets the current selected wizard page.
    • NewPage - a WizardPage property, which gets the wizard page to be selected.
  • SelectionChanged - Occurs when the selected page has changed. The SelectedPageChangedEventArgs class exposes the following specific properties:

    • Direction - an enumeration property, which gets the direction in which the user is navigating to. There are two possible directions specifying in which direction the user navigates between pages “Forward” and “Backward”.
    • OldPage - a WizardPage property, which gets the current selected wizard page.
    • NewPage - a WizardPage property, which gets the wizard page to be selected.

All of the event handlers for these events receive two arguments and are executed per wizard page. The sender argument contains RadWizard. This argument is of type object, but can be cast to the RadWizard type. A NavigationButtonsEventArgs object. This object has the SelectedPageIndex property, which is used to get or set the selected page index.

  • Previous - Occurs when the Previous button has been clicked.
  • Next - Occurs when the Next button has been clicked.
  • Finish - Occurs when the Finish button has been clicked.
  • Help - Occurs when the Help button has been clicked.
  • Cancel - Occurs when the Cancel button has been clicked.

Other events:

  • PageLoaded - Occurs when a new page is loaded. The PageEventArgs class exposes the Page property, which gets the currently loaded page in the wizard.

  • Completing - Occurs when the operation is about to be completed. The WizardCompletingEventArgs class exposes the following specific properties:

    • Cancel - a boolean property that enables the cancellation of the finish operation.
    • SelectedPage - a WizardPage property, which gets the page from which it was invoked.
    • Action -a property, which gets the action which will be performed. There are two possible actions “Abort” and “Finish”. The Action property will be with value “Abort” when the user has clicked the Cancel button and “Finish” when the Finish button is clicked.
  • Completed - Occurs when the wizard has already finish. The WizardCompletedEventArgs class exposes the following specific properties:
    • SelectedPage - a WizardPage property, which gets the page from which it was invoked.
    • Action -an enumeration property, which gets the action which was performed. There are two possible actions “Abort” and “Finish”. The Action property will be with value “Abort” when the user had clicked the Cancel button and “Finish” when the Finish button was clicked.
Was this article helpful? Yes No

Give article feedback

Tell us how we can improve this article

Dummy