ClassFilterDescriptor
Represents declarative filtering.
Definition
Namespace:Telerik.DataSource
Assembly:Telerik.DataSource.dll
Syntax:
public class FilterDescriptor : FilterDescriptorBase, IFilterDescriptor
Inheritance: objectJsonObjectFilterDescriptorBaseFilterDescriptor
Implements:
Inherited Members
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
member
The member.
filterOperator
The filter operator.
filterValue
The filter value.
Properties
ConvertedValue
Declaration
[JsonIgnore]
public object ConvertedValue { get; }
Property Value
Member
Gets or sets the member name which will be used for filtering.
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
[JsonIgnore]
public Type MemberType { get; set; }
Property Value
The type of the member used for filtering.
Operator
Gets or sets the filter operator.
Declaration
public FilterOperator Operator { get; set; }
Property Value
Methods
CreateFilterExpression(ParameterExpression)
Creates a predicate filter expression.
Declaration
protected override Expression CreateFilterExpression(ParameterExpression parameterExpression)
Parameters
parameterExpression
The parameter expression, which will be used for filtering.
Returns
A predicate filter expression.
Overrides
Equals(FilterDescriptor)
Determines whether the specified other
descriptor
is equal to the current one.
Declaration
public virtual bool Equals(FilterDescriptor other)
Parameters
other
The other filter descriptor.
Returns
True if all members of the current descriptor are
equal to the ones of other
, otherwise false.
Equals(object)
Determines whether the specified obj
is equal to the current descriptor.
GetHashCode()
Serves as a hash function for a particular type.
Declaration
public override int GetHashCode()
Returns
A hash code for the current filter descriptor.
Overrides
Serialize(IDictionary<string, object>)
for internal use
Declaration
protected override void Serialize(IDictionary<string, object> json)
Parameters
json
Overrides