ClassFilterDescriptor
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
FilterDescriptor()
Declaration
public FilterDescriptor()
FilterDescriptor(string, FilterOperator, object)
Declaration
public FilterDescriptor(string propertyName, FilterOperator filterOperator, object value)
Parameters
propertyName
filterOperator
value
Properties
Expression
Gets the filter expression.
Declaration
[Browsable(true)]
public virtual string Expression { get; }
Property Value
The filter expression.
IsFilterEditor
Gets a value indicating whether this instance is default filter descriptor of the column
Declaration
[Browsable(true)]
public virtual bool IsFilterEditor { get; set; }
Property Value
true if this instance is default; otherwise, false.
Operator
Gets or sets the operator.
Declaration
[Browsable(true)]
public virtual FilterOperator Operator { get; set; }
Property Value
The operator.
PropertyName
Gets or sets the name of the property.
Declaration
[Browsable(true)]
public virtual string PropertyName { get; set; }
Property Value
The name of the property.
Methods
Clone()
Creates a copy of the current FilterDescriptor instance.
Declaration
public virtual object Clone()
Returns
A new instance of FilterDescriptor that is a copy of the current instance.
Implements
GetExpression(FilterDescriptor)
Gets the expression.
Declaration
public static string GetExpression(FilterDescriptor filterDescriptor)
Parameters
filterDescriptor
The filter descriptor.
Returns
GetExpression(FilterDescriptor, Function<FilterDescriptor, object>)
Retrieves the filtering expression based on the specified filter descriptor and a function used to format the value.
Declaration
public static string GetExpression(FilterDescriptor filterDescriptor, Function<FilterDescriptor, object> formatValue)
Parameters
filterDescriptor
The filter descriptor used to create the filtering expression.
formatValue
Function<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.
OnPropertyChanged(PropertyChangedEventArgs)
Raises the PropertyChanged event
Declaration
protected virtual void OnPropertyChanged(PropertyChangedEventArgs e)
Parameters
e
A PropertyChangedEventArgs instance containing event data.
OnPropertyChanged(string)
Raises the PropertyChanged event
Declaration
protected void OnPropertyChanged(string propertyName)
Parameters
propertyName
The name of the property
OnPropertyChanging(PropertyChangingEventArgsEx)
Declaration
protected virtual void OnPropertyChanging(PropertyChangingEventArgsEx e)
Parameters
e
ToString()
Returns a string that represents this instance.
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Value
Implements
PropertyChanging
Occurs when a property value is changing.
Declaration
public event PropertyChangingEventHandlerEx PropertyChanging
Event Value
Implements