Represents a filter descriptor that combines multiple filter conditions.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Syntax:
public class CompositeFilterDescriptor : FilterDescriptor, INotifyPropertyChanged, INotifyPropertyChangingEx, ICloneable
Inheritance: objectFilterDescriptorCompositeFilterDescriptor
Derived Classes:
Implements:
Inherited Members
Constructors
public CompositeFilterDescriptor()
Properties
Gets the filter expression.
public override string Expression { get; }
The filter expression.
Overrides:
Gets the filter descriptors.
[Browsable(true)]
public virtual FilterDescriptorCollection FilterDescriptors { get; }
The filter descriptors.
Gets a value indicating whether this instance contains FilterDescriptor's with different PropertyName.
public bool IsSameName { get; }
true if any child filters have the same name; otherwise false.
Gets or sets the logical operator.
[Browsable(true)]
public virtual FilterLogicalOperator LogicalOperator { get; set; }
The logical operator.
Gets or sets a value indicating whether [not operator].
public bool NotOperator { get; set; }
true if [not operator]; otherwise, false.
Gets or sets the operator.
public override FilterOperator Operator { get; set; }
The operator.
Overrides:
Gets or sets the name of the property.
public override string PropertyName { get; set; }
The name of the property.
Overrides:
Methods
Creates a deep copy of the current CompositeFilterDescriptor instance.
public override object Clone()
A new instance of CompositeFilterDescriptor that is a copy of the current instance.
Overrides:
Converts to the filter descriptor to a concrete type.
public CompositeFilterDescriptor ConvertTo(CompositeFilterDescriptor.DescriptorType type, Type dataType)
The type to which the filter will be converted.
dataTypeTypeThe type of data that will be filtered.
Returns:The converted instance of CompositeFilterDescriptor
Converts to the filter descriptor to concrete type
public CompositeFilterDescriptor ConvertTo(CompositeFilterDescriptor.DescriptorType type)
The type.
Returns:The converted instance of CompositeFilterDescriptor
Creates the descriptor.
public static CompositeFilterDescriptor CreateDescriptor(CompositeFilterDescriptor.DescriptorType type, string propertyName, params object[] values)
The type.
propertyNamestringvaluesobject[]Returns:Creates the descriptor.
public static CompositeFilterDescriptor CreateDescriptor(CompositeFilterDescriptor.DescriptorType type, string propertyName, Type dataType, params object[] values)
The type.
propertyNamestringName of the property.
dataTypeTypeType of the data that will be filtered.
valuesobject[]The values.
Returns:Retrieves the composite expression for the specified composite filter descriptor using the provided function to evaluate filter descriptors.
public static string GetCompositeExpression(CompositeFilterDescriptor filterDescriptor, Function<FilterDescriptor, object> formatValue)
The composite filter descriptor to evaluate.
formatValueFunction<FilterDescriptor, object>The function used to process each filter descriptor.
Returns:A composite expression that represents the evaluation of the filter descriptors.
Retrieves the composite expression associated with the specified CompositeFilterDescriptor.
public static string GetCompositeExpression(CompositeFilterDescriptor filterDescriptor)
The CompositeFilterDescriptor from which to retrieve the composite expression.
Returns:A string representation of the composite expression for the specified filter descriptor.
Gets the type of the CompositeFilterDescriptor.
public static CompositeFilterDescriptor.DescriptorType GetDescriptorType(CompositeFilterDescriptor compositeDescriptor)
The filter descriptor.
Returns: