Is it feasible to display hyperlink or button on JQgrid Add/edit dialogbox

后端 未结 1 1549
故里飘歌
故里飘歌 2020-12-06 23:58

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

相关标签:
1条回答
  • 2020-12-07 00:45

    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.

    0 讨论(0)
提交回复
热议问题