New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent interface for configuring filter operator.

Definition

Constructors

Initializes a new instance of the DataSourceFilterComparisonDescriptorBuilderBase<TValue, TCompositeBuilder> class.

C#
protected DataSourceFilterComparisonDescriptorBuilderBase(CompositeFilterDescriptor descriptor)
Parameters:descriptorCompositeFilterDescriptor

The CompositeFilterDescriptor

Methods

Includes only values which are greater then the given value.

C#
public TCompositeBuilder IsGreaterThan(TValue value)
Parameters:valueTValue

The value which the result should be greater then

Returns:

TCompositeBuilder

An instance of TCompositeBuilder for method chaining.

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Ajax()
.Filter(f =&gt; f.Add(o =&gt; o.Freight).IsGreaterThan(30))
)

Includes only values which are greater then or equal to the given value.

C#
public TCompositeBuilder IsGreaterThanOrEqualTo(TValue value)
Parameters:valueTValue

The value which the result should be greater then or equal to

Returns:

TCompositeBuilder

An instance of TCompositeBuilder for method chaining.

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Ajax()
.Filter(f =&gt; f.Add(o =&gt; o.Freight).IsGreaterThanOrEqualTo(30))
)

Includes only values which are less then the given value.

C#
public TCompositeBuilder IsLessThan(TValue value)
Parameters:valueTValue

The value which the result should be less then

Returns:

TCompositeBuilder

An instance of TCompositeBuilder for method chaining.

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Ajax()
.Filter(f =&gt; f.Add(o =&gt; o.Freight).IsLessThan(30))
)

Includes only values which are less or equal to the given value.

C#
public TCompositeBuilder IsLessThanOrEqualTo(TValue value)
Parameters:valueTValue

The value which the result should be less or equal to

Returns:

TCompositeBuilder

An instance of TCompositeBuilder for method chaining.

Example:
C#
.DataSource(dataSource =&gt; dataSource
.Ajax()
.Filter(f =&gt; f.Add(o =&gt; o.Freight).IsLessThanOrEqualTo(30))
)