For security reasons I need to disable the right click option for the context menus but have been unsuccessful with the code samples I've used. I've tried to disable it via client side scripting and server side scripting and neither option has worked. If there is a server side solution for this could you please point me in the right direction to finding it?
Thanks
Thanks
<
script
type
=
"text/javascript"
>
// Dynamic positioning override - not guaranteed to work in future versions!
$telerik.$.popupDialog.prototype._positionForm = function () {
// This will be called each time the form needs to be repositioned
var $ = $telerik.$;
$(this._targetElement).css({ top: "150px", left: "200px" });
}
function OnClientAppointmentContextMenu(sender, args) {
sender.get_appointmentContextMenus()[0].set_enabled(false);
}
</
script
>
protected
void
RadScheduler1_TimeSlotCreated(
object
sender, Telerik.Web.UI.TimeSlotCreatedEventArgs e)
{
//if (!SecurityHandler.CanWrite(SafeValue.SafeInt(Session["UserID"].ToString()), "Scheduler Admin"))
e.TimeSlot.CssClass =
"Disabled"
;
}