Right click menu correctly works with its functions. But the issue is sometimes it is not working properly. In my view if right clicked on the table row checked the checkbox correctly but after I unchecked and try checked again with right click its not working.
$('.check').bind("contextmenu", function (event) {
event.preventDefault();
$(".custom-menu").finish().toggle(100).css({
top: event.pageY + "px",
left: event.pageX + "px"
});
});
$(document).bind("mousedown", function (e) {
if (!$(e.target).parents(".custom-menu").length > 0) {
$(".custom-menu").hide(100);
}
});
$('tr.check').contextmenu(function (e) {
$cb = $(this).find('input[type="checkbox"].selected_check');
$($cb).attr('checked', 'checked');
populate_context_menu($cb);
return false;
});