skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • NEW: Design Kits for Figma
    • Online Training
    • Document Processing Library
    • Embedded Reporting for web and desktop
    Web
    Kendo UI UI for jQuery UI for Angular UI for React UI for Vue UI for ASP.NET AJAX UI for ASP.NET MVC UI for ASP.NET Core UI for Blazor UI for Silverlight UI for PHP UI for JSP
    Mobile
    UI for .NET MAUI UI for Xamarin
    Document Management
    Telerik Document Processing
    Desktop
    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF UI for UWP
    Reporting & Mocking
    Telerik Reporting Telerik Report Server Telerik JustMock
    Automated Testing
    Test Studio Test Studio Dev Edition
    CMS
    Sitefinity
    UI/UX Tools
    ThemeBuilder
    Debugging
    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Jam FiddlerCap FiddlerCore
    Extended Reality
    UI for Unity XR
    Free Tools
    JustAssembly JustDecompile VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Docs & Support
  • Pricing
  • Search
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now

Class FilterDescriptor

Represents declarative filtering.

Inheritance
System.Object
JsonObject
FilterDescriptorBase
FilterDescriptor
Inherited Members
FilterDescriptorBase.CreateFilterExpression(Expression)
JsonObject.ToJson()
Namespace: Telerik.DataSource
Assembly: Telerik.DataSource.dll

Syntax

public class FilterDescriptor : FilterDescriptorBase, IFilterDescriptor

Constructors

FilterDescriptor()

Initializes a new instance of the FilterDescriptor class.

Declaration
public FilterDescriptor()

FilterDescriptor(String, FilterOperator, Object)

Initializes a new instance of the FilterDescriptor class.

Declaration
public FilterDescriptor(string member, FilterOperator filterOperator, object filterValue)
Parameters
System.String member

The member.

FilterOperator filterOperator

The filter operator.

System.Object filterValue

The filter value.

Properties

ConvertedValue

Declaration
public object ConvertedValue { get; }
Property Value
System.Object

Member

Gets or sets the member name which will be used for filtering.

Declaration
public string Member { get; set; }
Property Value
System.String

MemberType

Gets or sets the type of the member that is used for filtering. Set this property if the member type cannot be resolved automatically. Such cases are: items with ICustomTypeDescriptor, XmlNode or DataRow. Changing this property did not raise

Declaration
public Type MemberType { get; set; }
Property Value
System.Type

The type of the member used for filtering.

Operator

Gets or sets the filter operator.

Declaration
public FilterOperator Operator { get; set; }
Property Value
FilterOperator

Value

Gets or sets the target filter value.

Declaration
public object Value { get; set; }
Property Value
System.Object

Methods

CreateFilterExpression(ParameterExpression)

Creates a predicate filter expression.

Declaration
protected override Expression CreateFilterExpression(ParameterExpression parameterExpression)
Parameters
System.Linq.Expressions.ParameterExpression parameterExpression

The parameter expression, which will be used for filtering.

Returns
System.Linq.Expressions.Expression

A predicate filter expression.

Overrides
FilterDescriptorBase.CreateFilterExpression(ParameterExpression)

Equals(Object)

Determines whether the specified obj is equal to the current descriptor.

Declaration
public override bool Equals(object obj)
Parameters
System.Object obj

Returns
System.Boolean

Equals(FilterDescriptor)

Determines whether the specified other descriptor is equal to the current one.

Declaration
public virtual bool Equals(FilterDescriptor other)
Parameters
FilterDescriptor other

The other filter descriptor.

Returns
System.Boolean

True if all members of the current descriptor are equal to the ones of other, otherwise false.

GetHashCode()

Serves as a hash function for a particular type.

Declaration
public override int GetHashCode()
Returns
System.Int32

A hash code for the current filter descriptor.

Serialize(IDictionary<String, Object>)

for internal use

Declaration
protected override void Serialize(IDictionary<string, object> json)
Parameters
System.Collections.Generic.IDictionary<System.String, System.Object> json

Overrides
FilterDescriptorBase.Serialize(IDictionary<String, Object>)

Extension Methods

FilterDescriptorExtensions.SetMemberTypeFrom(FilterDescriptor, Object)

Was this article helpful?

Tell us how we can improve this article

Skip
Getting Started
  • Client-side Blazor
  • Server-side Blazor
  • Demos
Community
  • Forums
  • Blogs
  • Feedback Portal
Support Resources
  • Demos
  • Knowledge Base
  • Samples Repo
  • Localizations Repo
Sample Applications
  • Dashboard
  • PWA - Stocks
  • PWA - Blazing Coffee Roasters

Copyright © 2019 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.