【发布时间】:2014-04-15 06:06:35
【问题描述】:
我在我的 jqGrid 编辑表单中添加了一个自定义按钮,使用 beforeShowForm 事件创建。 Onclick 自定义按钮我想执行 ADD 操作。 下面是我的代码..
beforeShowForm: function(form) {
//Create Custom ADD Button
$('<a href="#">Add<span class="ui-icon ui-icon-disk"></span></a>')
.click(function() {
var $self = $(this);
$self.jqGrid("editGridRow", $self.jqGrid("getGridParam", "selrow"),
{
editData: {//Function to Add parameters to the status
oper: 'add', //trying to pass parameter to server
},
});
}).addClass("fm-button ui-state-default ui-corner-all fm-button-icon-left")
.prependTo("#Act_Buttons>td.EditButton");
守则editData: {//Function to Add parameters to the status
oper: 'add', //trying to pass parameter to server
},
显示 TypeError: a(...)[0].p is undefined 错误。知道如何实现这一目标吗?
【问题讨论】: