Example #1
0
 /**
  * Prepare javscript code for afterRestoreRow jqGrid event (show row buttons, and enable add row button)
  *
  * @return $this
  */
 public function prepareAfterRestoreRow()
 {
     // enable "add row" button
     if ($actionColumn = $this->grid->getColumn('myac')) {
         $actionColumn->mergeFormatOptions(array('afterRestore' => new Expr("function(rowid,response) {\n            jQuery('#" . $this->grid->getId() . "_iladd').removeClass('ui-state-disabled');\n            " . $this->getCustomButtonsShow() . "    \n        } \n        ")));
     }
     return $this;
 }