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

查看:17
本文介绍了在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

推荐答案

您必须手动添加您需要的信息.例如,您可以在 beforeShowForma 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天全站免登陆