Skip to main content
All docs
V25.1
  • RefreshFieldListService Class

    Enables you to specify options that affect how the Field List is refreshed.

    Namespace: DevExpress.XtraReports.Web.ReportDesigner.Services

    Assembly: DevExpress.XtraReports.v25.1.Web.dll

    NuGet Package: DevExpress.Web.Reporting.Common

    Declaration

    public class RefreshFieldListService

    Remarks

    Create a descendant of the RefreshFieldListService class and override the MaxNestingLevelUpdate property. It specifies the maximum nesting level of field list nodes whose data are queried when the Field List refreshes.

    The code snippets below demonstrate how to use this service to minimize the amount of data requested to refresh the Field List.

    1. Implement a derived class and override its methods.

      using DevExpress.XtraReports.Web.ReportDesigner.Services;
      
        public class MyRefreshFieldListService : RefreshFieldListService
        {
            public override int MaxNestingLevelUpdate => 1;
      
        }
      
    2. Register the class implemented in the previous step as a custom service at the application’s startup.

      • ASP.NET Web Forms and ASP.NET MVC

        using DevExpress.XtraReports.Web.ReportDesigner.Services;
        
          void Application_Start(object sender, EventArgs e) {
            DefaultReportDesignerContainer.Register<RefreshFieldListService, MyRefreshFieldListService>();
          }
        
      • ASP.NET Core

        using DevExpress.XtraReports.Web.ReportDesigner.Services;
        
        var builder = WebApplication.CreateBuilder(args);
        
        builder.Services.AddSingleton<RefreshFieldListService, MyRefreshFieldListService>();
        
        var app = builder.Build();
        

    Inheritance

    Object
    RefreshFieldListService
    See Also