public setFilterToolbarEvent ( string $event, string $code ) | ||
$event | string | Valid toolbar grid event, online documentation available at http://www.trirand.com/jqgridwiki/doku.php?id=wiki:toolbar_searching |
$code | string | Javascript code which will be executed when the event raises |
public function setFilterToolbarEvent($event, $code)
{
foreach ($this->filterToolbarValidators as $validator) {
$validator->validate(array_add(array(), $event, $code));
}
$this->filterToolbarOptions = array_merge($this->filterToolbarOptions, array_add(array(), $event, '###' . $code . '###'));
return $this;
}