\Kendo\UI\GridSearch
A PHP class representing the search setting of Grid.
Methods
addField
Adds one or more GridSearchField to the GridSearch.
Returns
\Kendo\UI\GridSearch
Parameters
$value[, $value2, ...] \Kendo\UI\GridSearchField|array
Example - using \Kendo\UI\GridSearchField
<?php
$search = new \Kendo\UI\GridSearch();
$field = new \Kendo\UI\GridSearchField();
$name = 'value';
$field->name($name);
$search->addField($field);
?>
Example - using array
<?php
$search = new \Kendo\UI\GridSearch();
$name = 'value';
$search->addField(array('name' => $name));
?>
Example - adding more than one GridSearchField
<?php
$search = new \Kendo\UI\GridSearch();
$first = new \Kendo\UI\GridSearchField();
$second = new \Kendo\UI\GridSearchField();
$search->addField($first, $second);
?>