AIReportingConfigurationBuilder.AddTestDataSource() Method
Activates AI-generated Test Data functionality in the Web Report Designer.
Namespace: DevExpress.AspNetCore.Reporting
Assembly: DevExpress.AIIntegration.AspNetCore.Reporting.v25.1.dll
NuGet Package: DevExpress.AIIntegration.AspNetCore.Reporting
Declaration
Returns
Type | Description |
---|---|
AIReportingConfigurationBuilder | A DevExpress.AspNetCore.Reporting.AIReportingConfigurationBuilder object that can be used to further configure the AI-powered functionality in Web Document Viewer and Web Report Designer. |
Remarks
The following code activates the AI-generated Test Data functionality with default number of rows (10):
// ...
builder.Services.AddDevExpressAI(config => {
config.AddWebReportingAIIntegration(options => {
options.AddTestDataSource();
});
});
Click the Smart Preview button in the Report Designer Toolbar to preview report with AI-generated data:
The following image shows the report preview with a test data source:
The test data source contains 10 data rows. To change the number of rows, use the SetRowCount(Int32) method.