ParamQuery grid support forum
General Category => ParamQuery Pro Evaluation Support => Topic started by: jax on June 23, 2014, 03:46:56 am
-
Do the event listeners not work for Editor Select elements? The below 'change' function does not execute when I change the selection.
colModel: [
{
title: 'Data Type', width: 100, dataIndx: 'DataType',
editor: {
type: 'select',
options: ['Express Lane', 'Package Us', 'Safe Face'], listeners: [{
change: function (evt, ui) {
alert('it worked!');
}
}],
}
},
-
Editors don't have listeners property.
Change event can be bound to editor in the init callback.
init: function(ui){
ui.$cell.find("select").change(function(evt){
alert('something');
});
}
API reference:
http://paramquery.com/pro/api#option-column-editor