Custom delete button in jqGrid

前端 未结 3 1394
梦谈多话
梦谈多话 2020-12-16 06:45

I\'d like to implement my own delete functionality in jqGrid. I\'m currently using the built-in UI (select row, press trashcan button in footer, confirm) but I\'d prefer to

3条回答
  •  感动是毒
    2020-12-16 07:17

    Another solution is to programmatically click on the delete icon (if present). The id for the delete icon (actually a div) is "del_[GridId]". This may not be a totally solid solution since they may change that id naming. But you get exactly the same behaviour (and also the nicer confirm modal).

    Example:

    $('#MyButton').click(function() { $('#del_' + gridId).click(); });
    

提交回复
热议问题