Back to Devexpress

WizardSettings Class

corelibraries-devexpress-dot-xtrareports-dot-web-dot-reportdesigner-dot-datacontracts-cf9c8ba1.md

latest3.3 KB
Original Source

WizardSettings Class

Contains the Report Wizard settings.

Namespace : DevExpress.XtraReports.Web.ReportDesigner.DataContracts

Assembly : DevExpress.Data.v25.2.dll

NuGet Package : DevExpress.Data

Declaration

csharp
[DataContract]
public class WizardSettings :
    SerializableSettingsBase
vb
<DataContract>
Public Class WizardSettings
    Inherits SerializableSettingsBase

The following members return WizardSettings objects:

Remarks

The WizardSettings class contains settings that you can use to configure the Report Wizard.

Example - Hide the Data Federation Item

The following image shows how the EnableFederationDataSource option affects the Select data source type wizard page:

The following code disables the EnableFederationDataSource option:

csharp
var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
            .Height("100%")
            .WizardSettings(s => s.EnableFederationDataSource = false)
            .Bind("TestReport");
@designerRender.RenderHtml()
csharp
public IActionResult Designer(
    [FromServices] IReportDesignerClientSideModelGenerator clientSideModelGenerator,
    [FromQuery] string reportName) {
    Models.ReportDesignerCustomModel model = new Models.ReportDesignerCustomModel();
    model.ReportDesignerModel = CreateDefaultReportDesignerModel(clientSideModelGenerator, reportName, null);
    model.ReportDesignerModel.WizardSettings.EnableFederationDataSource = false;
    return View(model);
}
csharp
@model ReportDesignerModel

@Html.DevExpress().ReportDesigner(settings => {
    settings.Name = "ReportDesigner1";
    settings.SettingsWizard.EnableFederationDataSource = false;
    // Add the created data source to the list of default data sources.
    foreach(var dataSourceItem in Model.DataSources)
        settings.DataSources.Add(dataSourceItem.Key, dataSourceItem.Value);
}).BindToUrl("TestReport").GetHtml()

Inheritance

Object DevExpress.Utils.SerializableSettingsBase WizardSettings

See Also

WizardSettings Members

DevExpress.XtraReports.Web.ReportDesigner.DataContracts Namespace