1

私は使用してJqgridおり、編集モードでは、選択ボックスのJQgrid同様のOnchangeイベントの要素で関数を使用しています

コードはこんな感じ

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

コンボボックスの場合にmyfunction()を追加したい。Onchangetipo_norma

4

1 に答える 1

5

editoptionsでdataEventを使用します

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

]}
于 2013-02-09T11:05:31.920 に答える