/** * Prepare javscript code for afterInsertRow jqGrid event (show/hide buttons) * * @return $this */ public function prepareAfterInsertRow() { $this->grid->setAfterInsertRow(new Expr("\n function(rowid,rowdata,rowelem) { \n if (rowid == 'new_row') {\n jQuery('tr#new_row div.ui-inline-edit, tr#new_row div.ui-inline-del').hide();\n jQuery('tr#new_row div.ui-inline-save, tr#new_row div.ui-inline-cancel').show();\n " . $this->getCustomButtonsHide('new_row') . "\n } \n }\n ")); return $this; }