[]
        
(Showing Draft Content)

GrapeCity.ActiveReports.Web.Designer.ReportDesignerConfiguration.LocateDataSource

LocateDataSource Property

LocateDataSource

Gets or sets the function to locate the data source.

Declaration
public Func<object> LocateDataSource { get; set; }
Property Value
Type Description
Func<object>

A Func<TResult> that returns the data source object.

Examples
app.UseReportDesigner(config =>
{
	// An example for JSON provider.
	config.LocateDataSource = () => "[{\"id\":1,\"name\":\"A\"},{\"id\":2,\"name\":\"B\"}]";
});