Dear Sir,
when i open appointment context menu using left menu then OnClientAppointmentContextMenu this event is not firing why?
Please help me.
Following Code responsible for Open Appointment Context Menu through Left Click.
function OnClientAppointmentClick(sender, args) {
sender.get_appointmentContextMenus()[0].show(args.get_domEvent());
}
But following client event is not firing
function OnClientAppointmentContextMenu(sender, args) {
var app = args.get_appointment();
var attValue = app.get_attributes().getAttribute('StatusId');
//alert(attValue);
if (attValue == "0") {
sender.get_appointmentContextMenus()[0].set_enabled(false);
}
else {
sender.get_appointmentContextMenus()[0].set_enabled(true);
}
}
So please Help Me.
Thanks
Chandan Kumar
when i open appointment context menu using left menu then OnClientAppointmentContextMenu this event is not firing why?
Please help me.
Following Code responsible for Open Appointment Context Menu through Left Click.
function OnClientAppointmentClick(sender, args) {
sender.get_appointmentContextMenus()[0].show(args.get_domEvent());
}
But following client event is not firing
function OnClientAppointmentContextMenu(sender, args) {
var app = args.get_appointment();
var attValue = app.get_attributes().getAttribute('StatusId');
//alert(attValue);
if (attValue == "0") {
sender.get_appointmentContextMenus()[0].set_enabled(false);
}
else {
sender.get_appointmentContextMenus()[0].set_enabled(true);
}
}
So please Help Me.
Thanks
Chandan Kumar