我一直在寻找如何定制deletegridrow对话框。我遇到的第一个问题是表单在单击submit按钮后通常会保持打开状态。
此外,我希望能够在对话框宽度内换行文本,而不是水平滚动。
我将感谢在这个问题上的任何帮助。
发布于 2017-01-22 09:43:56
我尝试过jqgrid的几个版本,但最终还是决定使用github的5.1.1版本。我猜这是老版本了。我能够使用这个片段来关闭网格。
{
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>?");
}
}
https://stackoverflow.com/questions/41768635
复制相似问题