Back to Devexpress

ASPxClientReportDesignerCustomizeWizardEventArgs Class

xtrareports-js-aspxclientreportdesignercustomizewizardeventargs.md

latest3.6 KB
Original Source

ASPxClientReportDesignerCustomizeWizardEventArgs Class

Provides data for the ASPxClientReportDesigner.CustomizeWizard event.

Declaration

ts
declare class ASPxClientReportDesignerCustomizeWizardEventArgs extends ASPxClientEventArgs

Remarks

ASPxClientReportDesignerCustomizeWizardEventArgs objects are automatically created, initialized and passed to corresponding event handlers.

Inheritance

ASPxClientEventArgs ASPxClientReportDesignerCustomizeWizardEventArgs

constructor(type, wizard)

Initializes a new instance of the ASPxClientReportDesignerCustomizeWizardEventArgs class with the specified settings.

Declaration

ts
constructor(
    type: DevExpress.Reporting.Designer.Wizard.WizardTypeString,
    wizard: DevExpress.Reporting.Designer.Wizard.WizardType
)

Parameters

NameTypeDescription
typeWizardTypeString

The wizard type. This value is assigned to the Type property.

| | wizard | WizardType |

The wizard object. This value is assigned to the Wizard property.

|

Properties

Type Property

Specifies the wizard type.

Declaration

ts
Type: DevExpress.Reporting.Designer.Wizard.WizardTypeString

Property Value

TypeDescription
WizardTypeString

The wizard type.

|

Remarks

Use the Type property to identify the wizard type. The following code snippet demonstrates how to handle the ASPxClientReportDesigner.CustomizeWizard event and check the wizard type.

aspx
<script type="text/javascript">
    function beforeInit(args) {
       // ...
    }

    function CustomizeWizard(s, e) {
        if (e.Type === "ReportWizard") {
            e.Wizard.events.addHandler("beforeInitialize", beforeInit)
        }
    }
</script>

<dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server">
    <ClientSideEvents CustomizeWizard="CustomizeWizard" />
</dx:ASPxReportDesigner>

Wizard Property

Specifies the wizard.

Declaration

ts
Wizard: DevExpress.Reporting.Designer.Wizard.WizardType

Property Value

TypeDescription
WizardType

The wizard object.

|

Remarks

The Wizard property allows you to access the wizard object. Use the Wizard ‘s events collection to handle wizard events.

aspx
<script type="text/javascript">
    function beforeInit(args) {
       // ...
    }

    function CustomizeWizard(s, e) {
        if (e.Type === "ReportWizard") {
            e.Wizard.events.addHandler("beforeInitialize", beforeInit)
        }
    }
</script>

<dx:ASPxReportDesigner ID="ASPxReportDesigner1" runat="server">
    <ClientSideEvents CustomizeWizard="CustomizeWizard" />
</dx:ASPxReportDesigner>