Hi team,
I want to trigger a function onchange dropdown list. I am using below code from the paramquery site which is not working for us. I want to call function1 on selecting Action1 option and function2 on selecting Action2 from the below code. How to achieve this.? Please response asap.
{ title: "Action", width: 150, dataType: "string",
editor: {
type: 'select',
options: ['--None--', 'Action1', 'Action2'],
getData:function(ui){
ui.$cell.find("select").val();
console.log(ui.$cell.find("select").val())
}
}
},
---------------------
I have used listeners also as below, but not working.
function action_handler() {
alert('Success');
}
{ title: "Action", width: 150, dataType: "string",
editor: {
type: 'select',
options: ['--None--', 'Action1', 'Action2'],
listeners: ['change', action_handler]
}
},