Hi,
I need to stop the context menu from displaying in certain situations (client-side of course). I tried using OnContextMenu, but I'm not sure if telerik's context menu supports being stopped.
Thank you for your help.
Daryl
Edit: Method is attached to this event:
I need to stop the context menu from displaying in certain situations (client-side of course). I tried using OnContextMenu, but I'm not sure if telerik's context menu supports being stopped.
function OnClientContextMenu(sender, args) { var appointment = args.get_appointment(); if (appointment) { if(appointment.get_attributes().getAttribute("Status") != 2 || appointment.get_attributes().getAttribute("Status") != 3) { //Stop context menu from showing. return; } else { //Show context menu. menu.show(args.get_domEvent()); } }}Thank you for your help.
Daryl
Edit: Method is attached to this event:
OnClientAppointmentContextMenu="OnClientContextMenu"