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

Defines the fluent API for configuring the FilterOperatorsStringSettings settings.

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class FilterOperatorsStringSettingsBuilder

Inheritance: objectFilterOperatorsStringSettingsBuilder

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

Constructors

C#
public FilterOperatorsStringSettingsBuilder(FilterOperatorsStringSettings settings)
Parameters:settingsFilterOperatorsStringSettings

The FilterOperatorsStringSettings

Methods

The text of the "contains" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Contains(string value)
Parameters:valuestring

The value that configures the contains.

Returns:

FilterOperatorsStringSettingsBuilder

Configures a custom operator

C#
public FilterOperatorsStringSettingsBuilder Custom(string name, Action<CustomFilterOperatorBuilder> configurator)
Parameters:namestring

The name of the custom operator.

configuratorAction<CustomFilterOperatorBuilder>

The configurator for the custom operator.

Returns:

FilterOperatorsStringSettingsBuilder

Example:
C#
@(Html.Kendo().Filter&lt;ProductViewModel&gt;()
.Name("filter")
.Operators(operators =&gt;
{
operators.String(s =&gt;
{
s.Custom("CustomOperator", c =&gt; c.Text("Custom Operator").Handler("customOperatorHandler"));
}
);
})
)

The text of the "does not contain" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Doesnotcontain(string value)
Parameters:valuestring

The value that configures the doesnotcontain.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "ends with" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Endswith(string value)
Parameters:valuestring

The value that configures the endswith.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "equal" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Eq(string value)
Parameters:valuestring

The value that configures the eq.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "isempty" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Isempty(string value)
Parameters:valuestring

The value that configures the isempty.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "isnotempty" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Isnotempty(string value)
Parameters:valuestring

The value that configures the isnotempty.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "isnotnull" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Isnotnull(string value)
Parameters:valuestring

The value that configures the isnotnull.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "isnotnullorempty" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Isnotnullorempty(string value)
Parameters:valuestring

The value that configures the isnotnullorempty.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "isnull" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Isnull(string value)
Parameters:valuestring

The value that configures the isnull.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "isnullorempty" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Isnullorempty(string value)
Parameters:valuestring

The value that configures the isnullorempty.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "not equal" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Neq(string value)
Parameters:valuestring

The value that configures the neq.

Returns:

FilterOperatorsStringSettingsBuilder

The text of the "starts with" filter operator.

C#
public FilterOperatorsStringSettingsBuilder Startswith(string value)
Parameters:valuestring

The value that configures the startswith.

Returns:

FilterOperatorsStringSettingsBuilder