\Kendo\Data\DataSourceFilterItem

A PHP class representing the filterItem setting of DataSourceFilter.

Methods

field

The data item field to which the filter operator is applied.

Returns

\Kendo\Data\DataSourceFilterItem

Parameters

$value string

Example

<?php
$filterItem = new \Kendo\Data\DataSourceFilterItem();
$filterItem->field('value');
?>

filters

The nested filter expressions. Supports the same options as filter. Filters can be nested indefinitely.

Returns

\Kendo\Data\DataSourceFilterItem

Parameters

$value array

Example

<?php
$filterItem = new \Kendo\Data\DataSourceFilterItem();
$filterItem->filters(array());
?>

ignoreCase

The filter will ignore the casing of the value by default.

Returns

\Kendo\Data\DataSourceFilterItem

Parameters

$value boolean

Example

<?php
$filterItem = new \Kendo\Data\DataSourceFilterItem();
$filterItem->ignoreCase(true);
?>

logic

The logical operation to use when the filter.filters option is set.The supported values are: "and" or "or".

Returns

\Kendo\Data\DataSourceFilterItem

Parameters

$value string

Example

<?php
$filterItem = new \Kendo\Data\DataSourceFilterItem();
$filterItem->logic('value');
?>

operator

The filter operator (comparison).The supported operators are: "eq" (equal to); "neq" (not equal to); "isnull" (is equal to null); "isnotnull" (is not equal to null); "lt" (less than); "lte" (less than or equal to); "gt" (greater than); "gte" (greater than or equal to); "startswith"; "doesnotstartwith"; "endswith"; "doesnotendwith"; "contains"; "doesnotcontain"; "isempty" or "isnotempty". The last eight are supported only for string fields.

Returns

\Kendo\Data\DataSourceFilterItem

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$filterItem = new \Kendo\Data\DataSourceFilterItem();
$filterItem->operator('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$filterItem = new \Kendo\Data\DataSourceFilterItem();
$filterItem->operator(new \Kendo\JavaScriptFunction('function() { }'));
?>

value

The value to which the field is compared. The value has to be of the same type as the field.

Returns

\Kendo\Data\DataSourceFilterItem

Parameters

$value ``
In this article
Not finding the help you need?