Hi,
I need to execute some code, on selecting one of the columns in Grid. The said column type is ‘dropdownlist’,
i have properly defined the data source etc,
{ text: ‘Company’, columntype: ‘dropdownlist’, datafield: ‘CompanyId’,
initeditor: function (row, cellvalue, editor) {
editor.jqxDropDownList({ displayMember: ‘CompanyName’, source: dataAdapater1 });
var value = $(“#jqxgrid”).jqxGrid(‘selectrow’, row);
$(“#CompanyId”).on(‘select’, editor, function (event)
{
compId = editor.jqxDropDownList(‘getSelectedIndex’);
alert(“compId ” + compId);
});
}
},
please let me know the issue in the high lighted line in above code,
Thanks,
Keshavan