在JQgrid的“添加/编辑"对话框上显示超链接或按钮是否可行? [英] Is it feasible to display hyperlink or button on JQgrid Add/edit dialogbox

查看:102
本文介绍了在JQgrid的“添加/编辑"对话框上显示超链接或按钮是否可行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在添加/编辑对话框插件上显示超链接是否可行? 超链接显示在网格中,但在对话框中不可见.

Is it feasible to show hyperlink on add/edit dialog box plugin? Hyperlink is displayed in grid but is not visible on the dialogbox.

有关详细代码和屏幕截图,请参阅:

For detailed code and screenshots please refer:

> https ://stackoverflow.com/questions/5665823/jqgrid-hyperlink-not-visible-in-add-edit-dialogbox-but-visible-in-column-of-the

推荐答案

您必须手动添加所需的信息.您可以在例如 beforeShowForm 或<作为编辑/添加"选项的一部分,a href ="http://www.trirand.com/jqgridwiki/doku.php?id=wiki%3aform_editing#events" rel ="nofollow"> afterShowForm .这是代码示例

You have to add the information which you need manually. You can do this inside of for example beforeShowForm or afterShowForm as a part of Edit/Add options. Here is the code example

{ // 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);
    }
}

此处,您可以找到旧的演示,该演示在其中显示了另一个字段添加对话框,并在对话框中插入包含其他信息的其他行.

Here you can find old demo which shows one additional field in the Add dialog and insert additional the row with additional information in the dialog.

这篇关于在JQgrid的“添加/编辑"对话框上显示超链接或按钮是否可行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆