在JQgrid“添加/编辑”对话框上显示超链接或按钮是否可行

|| 在添加/编辑对话框插件上显示超链接是否可行? 超链接显示在网格中,但在对话框中不可见。 有关详细的代码和屏幕截图,请参阅: https://stackoverflow.com/questions/5665823/jqgrid-hyperlink-not-visible-in-add-edit-dialogbox-but-visible-in-column-of-the
已邀请:
您必须手动添加所需的信息。您可以在例如beforeShowForm或afterShowForm内部执行此操作,作为“编辑/添加”选项的一部分。这是代码示例
{ // edit options
    recreateForm: true,
    beforeShowForm: function(form) {
        var nameColumnField = $(\'#tr_Name\', form);
        $(\'<tr class=\"FormData\" id=\"tr_AddInfo\"><td \"+
            \"class=\"CaptionTD ui-widget-content\"><b>Additional Information:</b>\"+
            \"</td></tr>\').insertAfter (nameColumnField);
    }
}
在这里,您可以找到旧的演示,该演示在“添加”对话框中显示了一个附加字段,并在对话框中插入了包含附加信息的附加行。

要回复问题请先登录注册