jqgrid 行内删除 传参


请问Jqgrid 行内删除怎么传参数?

   
  { name: 'fid', index: 'fid', hidden: true, editable: true, editoptions: { readonly: true} },
  
{ name: 'myac', index: '', width: 80, fixed: true, sortable: false, resize: false,align:'center',
formatter: 'actions', //这块只要写actions 默认会出来 编辑和删除的按钮,
formatoptions: {
keys: true,
delbutton: false,
delOptions: { recreateForm: true, beforeShowForm: beforeDeleteCallback, msg: '您确定要删除该分类?</span>',
url: '/handlers/EmailFolder.ashx?action=DeleteCampaignFolder?fid='//**动态的当前行的 fid**
}
}
}

像那块动态的fid怎么传?

.net JavaScript

age45 9 years, 11 months ago
   
  {
  
// ...
url:(function(fid){return '/handlers/EmailFolder.ashx?action=DeleteCampaignFolder?fid='+fid})(fid)
//... 不知道您是这个意思吗?
}

丿一枝丶独殇 answered 9 years, 11 months ago

Your Answer