New to Telerik UI for ASP.NET AJAX? Start a free 30-day trial

Represents a formatter that creates a string representation of a filter expression using the passed field name and data type. The expression uses Entity SQL syntax.

Definition

Namespace:Telerik.Web.UI

Assembly:Telerik.Web.UI.dll

Syntax:

C#
public class RadFilterEntitySqlExpressionFormatter : IRadFilterExpressionFormatter

Inheritance: objectRadFilterEntitySqlExpressionFormatter

Implements: IRadFilterExpressionFormatter

Inherited Members object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()object.GetType()object.MemberwiseClone()...

Constructors

C#
public RadFilterEntitySqlExpressionFormatter()

Methods

Creates a formatted string using the respective syntax that is populated with the provided field name and data type parameters.

C#
public string FormatFieldName(string fieldName, Type dataType, bool isCaseSensitive)
Parameters:fieldNamestring

The name of the field the expression is built for.

dataTypeType

The data type of the field the expression is built for.

isCaseSensitivebool

A boolean value indicating whether the formatted expression should be case-sensitive.

Returns:

string

A formatted string representing the filter expression.

Implements: IRadFilterExpressionFormatter.FormatFieldName(string, Type, bool)

Formats the string expression using the passed filter value(s).

C#
public ArrayList FormatFieldValue(ArrayList values, Type forType, bool isCaseSensitive)
Parameters:valuesArrayList

An ArrayList with the expression values.

forTypeType

The data type of the expression.

isCaseSensitivebool

A boolean value indicating whether the formatted expression should be case-sensitive.

Returns:

ArrayList

A formatted string representing the filter expression.

Implements: IRadFilterExpressionFormatter.FormatFieldValue(ArrayList, Type, bool)