Event arguments raised by OnDataProcess for each generated ComponentConfig,
giving the host a chance to process the raw dataset itself (e.g. via DataSourceRequest/
DataSourceResult from Telerik.DataSource) instead of relying on the renderer's
built-in filter/sort/group/aggregate pipeline.
Definition
Namespace:Telerik.Blazor.Components.DatAInsightsComposer
Assembly:Telerik.Blazor.DatAInsightsComposer.dll
Syntax:
public sealed class DatAInsightsComposerDataProcessEventArgs
Inheritance: objectDatAInsightsComposerDataProcessEventArgs
Constructors
public DatAInsightsComposerDataProcessEventArgs()
Properties
The type of component (Grid/Chart/etc.) this data is being prepared for. Mirrors Config's ComponentType, so the host can switch on it directly instead of downcasting Config.
public ComponentType ComponentType { get; }
The component configuration (Grid/Chart/etc.) this data is being prepared for.
public ComponentConfig Config { get; set; }
The DataSource (filters/sorts/groups/aggregates/paging) declared on Config,
or null for component types that don't have one (e.g. gauges). This is the raw
configuration the AI produced; DataSourceRequest is the same information already
converted into a ready-to-use Telerik.DataSource.DataSourceRequest.
public DataSourceConfig? DataSourceConfig { get; }
DataSourceConfig pre-converted into a Telerik.DataSource.DataSourceRequest
(filters/sorts/groups/paging), so you can just call .ToDataSourceResult() on your data
without any manual mapping. null when DataSourceConfig is null.
public DataSourceRequest? DataSourceRequest { get; }
Set this to the processed data items to use instead of the renderer's built-in processing.
Leave null (default) to fall back to the built-in filter/sort/group/aggregate pipeline
driven by Config's DataSource settings.
The renderer converts each item into an ExpandoObject internally
(for the Grid) or into chart series data (for the Chart), so any object shape compatible with
the configured field names can be returned.
public List<object>? ProcessedData { get; set; }