Hi Veronica,
I used the code in "Setting special days or time slots in RadScheduler" Article. However I ran into an issue where the Right click Context menu is disabled for appointments that are in the disabled slots. I want the Timeslot context menu to be disabled, but the Appointments (that are located in the slot) to still have the context menu.
The problem is the jQuery code that disables the right click menu for appointments and timeslots
$telerik.$(
".Disabled"
).bind(
"contextmenu"
,
function
(e) {
return
false
;
});
Is there a way to cancel the context menu from the
OnClientTimeSlotContextMenu event? I can already successfully check if the slot is enabled or disabled, i just need a command to stop or not display the Timeslot context menu.
Here's my js function
function OnClientTimeSlotContextMenut(sender, eventArgs) {
if ($telerik.$(obj._domElement).hasClass('disabled_slot')) {
//Do not show the menu
}
}