如何在JQgrid元素中添加函数,如选择框中的Onchange事件


How to add function in element of JQgrid like Onchange event in select box

我正在使用Jqgrid,在编辑模式下我正在使用JQgrid元素中的函数类似于选择框中的Onchange事件

代码类似于此

{name:'tipo_norma',index:'tipo_norma', editable:true, 
width:'90',align:'center',edittype:'select',editoptions: 
{dataUrl:'../ajax/selectNorma.php' }}

我想在tipo_norma组合框的Onchange事件中添加myfunction()。

在editoptions 中使用dataEvent

    editoptions: { dataEvents: [
{ type: 'change', fn: function(e) {myfunction(); } },
]}