여러 버전의 jqgrid를 사용했지만 마침내 github에서 5.1.1 버전을 사용하기로 결정했습니다. 나는 이것이 이전 버전이라고 생각한다. 나는이 snipet
{
caption: "Delete selected ISBN",
modal: true,
//msg : "The selected ISBN will be deleted from the system. Please confirm to proceed with this operation.",
url: '<?php echo $this->Html->url(array('
controller ' => '
isbns ', '
action ' => '
delete ')); ?>',
width: 300,
closeOnEscape: true,
reloadAfterSubmit: true,
beforeShowForm: function($form) {
row_id = $("#jqgrid").jqGrid('getGridParam', 'selrow');
$("td.delmsg", $form[0]).html("Do you really want delete the isbn <br/>number: <b>" +
$("#jqgrid").jqGrid('getCell', row_id, 'isbn') + "</b>?");
}
}
당신이 사용하고있는 jqGrid 버전
있는 jqGrid ([무료있는 jqGrid (어떤 포크에서 https://github.com/를 사용하여 닫습니다 그리드를 얻을 수 있었다 free-jqgrid/jqGrid), 상업용 [Guriddo jqGrid JS] (http://guriddo.net/?page_id=103334) 또는 이전 jqGrid 버전 (4.7 이하)? 삭제 대화 상자를 사용/생성하는 방법과 매개 변수를 표시하는 코드를 포함해야합니다. 잘못된 옵션 (예 :'afterSubmit' 콜백)은 대화가 열리는 전형적인 이유입니다. – Oleg