\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());
?>

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"; "endswith"; "contains"; "doesnotcontain"; "isempty" or "isnotempty". The last five 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 ``
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy