Class DataFilterOperatorContext
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.UI.dll
Syntax
public class DataFilterOperatorContext
Constructors
DataFilterOperatorContext(String, FilterOperator)
Declaration
public DataFilterOperatorContext(string id, FilterOperator filterOperator)
Parameters
System.String
id
|
FilterOperator
filterOperator
|
Properties
Name
Gets the name.
Declaration
public string Name { get; }
Property Value
System.String
The name. |
Operator
Gets the operator.
Declaration
public FilterOperator Operator { get; }
Property Value
FilterOperator
The operator. |
Methods
GetDisplayName(FilterOperator, String)
Gets the display name from localization provider.
Declaration
public static string GetDisplayName(FilterOperator filterOperator, string value)
Parameters
FilterOperator
filterOperator
The filter operator. |
System.String
value
The value. |
Returns
System.String
|
GetDisplayValue(FilterOperator, Object)
Gets the display value. Returns a value depending on filter operator.
Declaration
public static object GetDisplayValue(FilterOperator filterOperator, object value)
Parameters
FilterOperator
filterOperator
The filter operator. |
System.Object
value
The value. |
Returns
System.Object
|
GetFilterOperations(Type)
Gets the filter operations that are suitable for the given data type.
Declaration
public static List<DataFilterOperatorContext> GetFilterOperations(Type dataType)
Parameters
System.Type
dataType
Type of the data. |
Returns
System.Collections.Generic.List<DataFilterOperatorContext>
|
GetOperator(FilterOperator, String)
Gets the operator. For example: If the operator is LIKE and the value is '%s%' - returns Contains.
Declaration
public static FilterOperator GetOperator(FilterOperator filterOperator, string value)
Parameters
FilterOperator
filterOperator
The filter operator. |
System.String
value
The value. |
Returns
FilterOperator
|
IsEditableFilterOperator(FilterOperator)
Declaration
public static bool IsEditableFilterOperator(FilterOperator filterOperator)
Parameters
FilterOperator
filterOperator
|
Returns
System.Boolean
|