Skip to main content
All docs
V25.2
  • EnableFederationWhenOnlyReportDataSourcesAvailable Function

    Enables or disables data federation option when only report data sources are available.

    Declaration

    export const EnableFederationWhenOnlyReportDataSourcesAvailable: DevExpress.Analytics.Internal.IGlobalSubscribableValue<boolean>

    Parameters

    Name Type Description
    newVal boolean

    true to enable data federation option when only report data sources are available; otherwise, false.

    Returns

    Type
    boolean

    Remarks

    Important

    This property is now obsolete and will be removed in future versions. When this property is set to true, the Data Source Wizard displays the option to create a Data Federation when a report contains one or more supported data sources, even if no connection string provider is registered:

    True False
    Data Source Wizard - Data Federation option enabled Data Source Wizard - Data Federation option disabled

    The following code snippet sets the EnableFederationWhenOnlyReportDataSourcesAvailable property to true:

    @model DevExpress.XtraReports.Web.ReportDesigner.ReportDesignerModel
    <script>
        function BeforeRender(s, e) {
            DevExpress.Reporting.Designer.Settings.EnableFederationWhenOnlyReportDataSourcesAvailable(true);
        }
    </script>
    @{
        var designerRender = Html.DevExpress().ReportDesigner("reportDesigner")
            .Height("100%")   
            .ClientSideEvents(events => {
                events.BeforeRender("BeforeRender");
            })
            .Bind(Model);
        @designerRender.RenderHtml()
    }