New to Telerik UI for Blazor? Start a free 30-day trial

A recursive filter node. Either a leaf (Field + Operator + Value) or a branch (Logic + Children). Used as the AI-facing filter descriptor that is later mapped to Telerik.DataSource filter types for evaluation.

Definition

Namespace:Telerik.Blazor.Components.DatAInsightsComposer

Assembly:Telerik.Blazor.DatAInsightsComposer.dll

Syntax:

C#
public class DataSourceFilterDescriptor

Inheritance: objectDataSourceFilterDescriptor

Constructors

C#
public DataSourceFilterDescriptor()

Properties

Child filter nodes. Populated on branch nodes only. Must contain at least 2 nodes.

C#
public List<DataSourceFilterDescriptor>? Children { get; set; }

The data field to filter on. Populated on leaf nodes only. Must match a field name from the available fields list.

C#
public string? Field { get; set; }

The runtime type of the filtered field. When provided, the mapper uses this to set MemberType on the underlying FilterDescriptor without a field-list lookup. Applies to both Grid and Chart filter contexts. Populated on leaf nodes only.

C#
public DataSourceFieldType? FieldType { get; set; }

Logical operator combining the children. Populated on branch nodes only.

C#
public DataSourceFilterLogic? Logic { get; set; }

The filter operator. Populated on leaf nodes only.

C#
public DataSourceFilterOperator? Operator { get; set; }

The value to compare against. Can be a string, number, boolean, or date string. Typed as JsonElement so the JSON Schema correctly allows any scalar (string, number, boolean, or null) and deserialization is always consistent. Populated on leaf nodes only.

C#
public JsonElement? Value { get; set; }