In JQWidgets, Inside JqxGrid control I had added jqxdropdown. Dropdown select event is call multiple times or ‘n’ number of items present into the list.
I had found below solution, If argument is 'mouse' then only go for DB trip and its working for me ..
It may be helpful for you...
$("#jqxgridPtr1").on('cellclick', function (event) {
var args = event.args;
ddlclicked = args.rowindex;
});
$("#jqxgridPtr1").on('select', function (event) {
var args = event.args;
if (args.type == 'mouse') {
$("#jqxgridPtr1").jqxGrid('setcellvalue', ddlclicked, "IsMDRTotalComp", event.target.textContent);
SavegridPtr1('1', ddlclicked);
}
});
$("#jqxgridPtr1").on('cellclick', function (event) {
var args = event.args;
ddlclicked = args.rowindex;
});
$("#jqxgridPtr1").on('select', function (event) {
var args = event.args;
if (args.type == 'mouse') {
$("#jqxgridPtr1").jqxGrid('setcellvalue', ddlclicked, "IsMDRTotalComp", event.target.textContent);
SavegridPtr1('1', ddlclicked);
}
});