FilterDescriptor
Represents a filter condition that can be applied to a data field for filtering operations.
Definition
Namespace:Telerik.WinControls.Data
Assembly:Telerik.WinControls.dll
Syntax:
public class FilterDescriptor : INotifyPropertyChanged, INotifyPropertyChangingEx, ICloneable
Inheritance: objectFilterDescriptor
Derived Classes:
Implements:
Constructors
public FilterDescriptor()
public FilterDescriptor(string propertyName, FilterOperator filterOperator, object value)
Properties
Gets the filter expression.
[Browsable(true)]
public virtual string Expression { get; }
The filter expression.
Gets a value indicating whether this instance is default filter descriptor of the column
[Browsable(true)]
public virtual bool IsFilterEditor { get; set; }
true if this instance is default; otherwise, false.
Gets or sets the operator.
[Browsable(true)]
public virtual FilterOperator Operator { get; set; }
The operator.
Gets or sets the name of the property.
[Browsable(true)]
public virtual string PropertyName { get; set; }
The name of the property.
Methods
Creates a copy of the current FilterDescriptor instance.
public virtual object Clone()
A new instance of FilterDescriptor that is a copy of the current instance.
Implements:
Retrieves the filtering expression based on the specified filter descriptor and a function used to format the value.
public static string GetExpression(FilterDescriptor filterDescriptor, Function<FilterDescriptor, object> formatValue)
The filter descriptor used to create the filtering expression.
formatValueFunction<FilterDescriptor, object>A function that takes a filter descriptor and returns an object to be used in the expression.
Returns:A filtering expression that represents the criteria defined by the filter descriptor.
Gets the expression.
public static string GetExpression(FilterDescriptor filterDescriptor)
The filter descriptor.
Returns:Raises the PropertyChanged event
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
A PropertyChangedEventArgs instance containing event data.
Raises the PropertyChanged event
protected void OnPropertyChanged(string propertyName)
The name of the property
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx e)
Events
public event PropertyChangedEventHandler PropertyChanged
Implements:
Occurs when a property value is changing.
public event PropertyChangingEventHandlerEx PropertyChanging
Implements: