public setGridEvent ( string $event, string $code ) | ||
$event | string | Valid grid event, online documentation available at http://www.trirand.com/jqgridwiki/doku.php?id=wiki:events&s[]=event |
$code | string | Javascript code which will be executed when the event raises |
public function setGridEvent($event, $code)
{
foreach ($this->optionValidators as $validator) {
$validator->validate(array_add(array(), $event, $code));
}
$this->options = array_add($this->options, $event, '###' . $code . '###');
return $this;
}