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