Class FilterDescriptor
Represents declarative filtering.
Namespace: Telerik.DataSource
Assembly: Telerik.DataSource.dll
Syntax
public class FilterDescriptor : FilterDescriptorBase, IFilterDescriptor
Constructors
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
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 |
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
|