New to Telerik UI for BlazorStart a free 30-day trial

Base class for all IFilterDescriptor used for handling the logic for property changed notifications.

Definition

Namespace:Telerik.DataSource

Assembly:Telerik.DataSource.dll

Syntax:

C#
[JsonConverter(typeof(FilterDescriptorBaseConverter))]
public class FilterDescriptorBase : JsonObject, IFilterDescriptor

Inheritance: objectJsonObjectFilterDescriptorBase

Derived Classes: CompositeFilterDescriptorFilterDescriptionFilterDescriptor

Implements: IFilterDescriptor

Inherited Members JsonObject.ToJson()

Constructors

C#
public FilterDescriptorBase()

Methods

Creates a filter expression by delegating its creation to CreateFilterExpression(ParameterExpression), if instance is ParameterExpression, otherwise throws ArgumentException

C#
public virtual Expression CreateFilterExpression(Expression instance)
Parameters:instanceExpression

The instance expression, which will be used for filtering.

Returns:

Expression

A predicate filter expression.

Exceptions:

ArgumentException

Parameter should be of type ParameterExpression

Implements: IFilterDescriptor.CreateFilterExpression(Expression)

Creates a predicate filter expression used for collection filtering.

C#
protected virtual Expression CreateFilterExpression(ParameterExpression parameterExpression)
Parameters:parameterExpressionParameterExpression

The parameter expression, which will be used for filtering.

Returns:

Expression

A predicate filter expression.

for internal use

C#
protected override void Serialize(IDictionary<string, object> json)
Parameters:jsonIDictionary<string, object>

Overrides: JsonObject.Serialize(IDictionary<string, object>)