【发布时间】:2012-03-29 02:21:53
【问题描述】:
我在 JqGrid 上有这个专栏模型:
{name:'ta',index:'ta',jsonmap:'ta',width:70,editable:true,edittype:'select',
editoptions: {dataUrl:hostname+'/sisfa/ta_cb'}}
我正在使用 JqGrid 表单编辑来编辑此字段。如何在表单编辑时“捕捉”该字段的字段编辑器。我正在使用这种方法,但不起作用
.editGridRow("new",
{closeAfterAdd: true, addCaption:'Add Data',
width:500,dataheight:300,beforeShowForm:function(formid){
console.log($('#tr_ta').find('select[name=ta]'));
}});
此方法适用于其他编辑类型。
【问题讨论】:
标签: jquery jquery-plugins jqgrid